]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
Fixed variable naming of TARGET in lfs/linux.
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 29 Nov 2008 17:10:17 +0000 (18:10 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 29 Nov 2008 17:10:17 +0000 (18:10 +0100)
lfs/linux

index 0d09ca9db1c751912ce5544099c79fb082b26b23..39d4eee95fa62b902976067a8f6a54956d3b222a 100644 (file)
--- a/lfs/linux
+++ b/lfs/linux
@@ -123,19 +123,20 @@ endif
 ifeq "$(STAGE)" "ipfire"
        cd $(DIR_APP) && make mrproper
 
-       if [ "$(IFS_ARCH)" == "i586" ]; then \
+       # Select right optimization for the linux kernel.
+       if [ "$(TARGET)" == "i486" ]; then \
                sed -e "s/^CONFIG_M686=y/# CONFIG_686 is not set/" \
-                       -e "s/^# CONFIG_MPENTIUMIII is not set/CONFIG_MPENTIUMII=y/" \
+                       -e "s/^# CONFIG_M486 is not set/CONFIG_M486=y/" \
                        < $(DIR_CONF)/kernel/kernel.config > $(DIR_APP)/.config; \
-       elif [ "$(IFS_ARCH)" == "i486" ]; then \
+       elif [ "$(TARGET)" == "i586" ]; then \
                sed -e "s/^CONFIG_M686=y/# CONFIG_686 is not set/" \
-                       -e "s/^# CONFIG_M486 is not set/CONFIG_M486=y/" \
+                       -e "s/^# CONFIG_MPENTIUMIII is not set/CONFIG_MPENTIUMII=y/" \
                        < $(DIR_CONF)/kernel/kernel.config > $(DIR_APP)/.config; \
-       elif [ "$(IFS_ARCH)" == "via-c7" ]; then \
+       elif [ "$(TARGET)" == "via-c7" ]; then \
                sed -e "s/^CONFIG_M686=y/# CONFIG_686 is not set/" \
                        -e "s/^# CONFIG_MVIAC7 is not set/CONFIG_MVIAC7=y/" \
                        < $(DIR_CONF)/kernel/kernel.config > $(DIR_APP)/.config; \
-       elif [ "$(IFS_ARCH)" == "via-c3" ]; then \
+       elif [ "$(TARGET)" == "via-c3" ]; then \
                sed -e "s/^CONFIG_M686=y/# CONFIG_686 is not set/" \
                        -e "s/^# CONFIG_MVIAC3_2 is not set/CONFIG_MVIAC3_2=y/" \
                        < $(DIR_CONF)/kernel/kernel.config > $(DIR_APP)/.config; \