From 0935e7b9736f0c6d9699bc20a77e053a3527b366 Mon Sep 17 00:00:00 2001 From: Trent Piepho Date: Fri, 1 Sep 2006 14:45:49 -0700 Subject: Fix bug in build system dependency evaluator From: Trent Piepho A subtle bug in the code that changed Kconfig depends expressions into Perl expressions would keep changes to Kconfig variables from propagating. The subroutine was supposed to change a _copy_ of the expression from Kconfig to Perl syntax, but was changing the expression itself. Signed-off-by: Trent Piepho --- v4l/scripts/make_kconfig.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'v4l') diff --git a/v4l/scripts/make_kconfig.pl b/v4l/scripts/make_kconfig.pl index 6f1b108c1..c2c6342d9 100755 --- a/v4l/scripts/make_kconfig.pl +++ b/v4l/scripts/make_kconfig.pl @@ -211,7 +211,7 @@ sub checkdeps() # Convert a Kconfig expression to a Perl expression sub toperl($) { - $_ = shift; + local $_ = shift; # Turn n,m,y into 0,1,2 s/\bn\b/0/g; s/\bm\b/1/g; s/\by\b/2/g; -- cgit v1.2.3