diff options
author | Felix Fietkau <nbd@openwrt.org> | 2005-03-21 14:27:53 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2005-03-21 14:27:53 +0000 |
commit | 485dbd728f3db42252d4d63158e528067c33ddf4 (patch) | |
tree | 45e8e7ad962cb5eb1619e743ca3b19fa490cbaaf | |
parent | bf02e8a3988d9daed273d5cc8f4ae5dd47213b78 (diff) | |
download | master-187ad058-485dbd728f3db42252d4d63158e528067c33ddf4.tar.gz master-187ad058-485dbd728f3db42252d4d63158e528067c33ddf4.tar.bz2 master-187ad058-485dbd728f3db42252d4d63158e528067c33ddf4.zip |
clean linux kernel, when linux.config changes
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@408 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rwxr-xr-x | scripts/configtest.pl | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/scripts/configtest.pl b/scripts/configtest.pl index 01323a5211..05022debd3 100755 --- a/scripts/configtest.pl +++ b/scripts/configtest.pl @@ -1,12 +1,26 @@ #!/usr/bin/perl - my %change = ( 'BUSYBOX' => 'make -C package busybox-clean', '' => 'make target_clean' ); +my @configfiles = ( + ['package/linux/linux.config', 'build_mipsel/linux/.config' => + 'make -C package linux-clean'] +); + + + foreach my $change (keys %change) { my $v1 = `grep '$change' .config.test`; my $v2 = `grep '$change' .config`; $v1 eq $v2 or system($change{$change}); } + +foreach my $file (@configfiles) { + if ((-f $file->[0]) and (-f $file->[1])) { + my @s1 = stat $file->[0]; + my @s2 = stat $file->[1]; + $s1[9] > $s2[9] and system($file->[2]); + } +} |