summaryrefslogtreecommitdiffstats
path: root/target/linux26.mk
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-02-04 16:30:07 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-02-04 16:30:07 +0000
commitcc6f5f2027ab34f3384ccde954f93321d9f6bc67 (patch)
treeb2614f48a91bc5896ebbb4b0f961f407d403fbab /target/linux26.mk
parentceca5db0b006034c08eea191ba60a9a0bd6330a8 (diff)
downloadbuildroot-novena-cc6f5f2027ab34f3384ccde954f93321d9f6bc67.tar.gz
buildroot-novena-cc6f5f2027ab34f3384ccde954f93321d9f6bc67.zip
- propagate BR2_ARM_EABI setting down to LINUX26_KCONFIG
Diffstat (limited to 'target/linux26.mk')
-rw-r--r--target/linux26.mk28
1 files changed, 15 insertions, 13 deletions
diff --git a/target/linux26.mk b/target/linux26.mk
index 79023d7c6..efd047406 100644
--- a/target/linux26.mk
+++ b/target/linux26.mk
@@ -67,38 +67,40 @@ ifneq ($(DOWNLOAD_LINUX26_VERSION),$(LINUX26_VERSION))
# Rename the dir from the downloaded version to the AFTER patch version
mv -f $(BUILD_DIR)/linux-$(DOWNLOAD_LINUX26_VERSION) $(BUILD_DIR)/linux-$(LINUX26_VERSION)
endif
- touch $(LINUX26_DIR)/.unpacked
+ touch $@
$(LINUX26_DIR)/.patched: $(LINUX26_DIR)/.unpacked
toolchain/patch-kernel.sh $(LINUX26_DIR) $(LINUX26_PATCH_DIR)
- touch $(LINUX26_DIR)/.patched
-
+ touch $@
endif # ($(LINUX26_VERSION),$(LINUX_HEADERS_VERSION))
$(LINUX26_DIR)/.configured: $(LINUX26_DIR)/.patched $(LINUX26_KCONFIG)
- -cp $(LINUX26_KCONFIG) $(LINUX26_DIR)/.config
- $(SED) 's,^CONFIG_EABI.*,# CONFIG_EABI is not set,g' \
- $(LINUX26_DIR)/.config
+ cp -dpf $(LINUX26_KCONFIG) $(LINUX26_DIR)/.config
+ $(SED) '/CONFIG_AEABI/d' $(LINUX26_DIR)/.config
ifeq ($(BR2_ARM_EABI),y)
- echo "CONFIG_EABI=y" >> $(LINUX26_DIR)/.config
+ echo "CONFIG_AEABI=y" >> $(LINUX26_DIR)/.config
+ $(SED) '/CONFIG_OABI_COMPAT/d' $(LINUX26_DIR)/.config
+ echo "# CONFIG_OABI_COMPAT is not set" >> $(LINUX26_DIR)/.config
+else
+ echo "# CONFIG_AEABI is not set" >> $(LINUX26_DIR)/.config
endif
$(MAKE) $(LINUX26_MAKE_FLAGS) -C $(LINUX26_DIR) oldconfig
- touch $(LINUX26_DIR)/.configured
+ touch $@
$(LINUX26_DIR)/.depend_done: $(LINUX26_DIR)/.configured
$(MAKE) $(LINUX26_MAKE_FLAGS) -C $(LINUX26_DIR) prepare
- touch $(LINUX26_DIR)/.depend_done
+ touch $@
$(LINUX26_KERNEL): $(LINUX26_DIR)/.depend_done
$(MAKE) $(LINUX26_MAKE_FLAGS) -C $(LINUX26_DIR) $(LINUX26_FORMAT)
$(MAKE) $(LINUX26_MAKE_FLAGS) -C $(LINUX26_DIR) modules
- cp -fa $(LINUX26_DIR)/$(LINUX26_BINLOC) $(LINUX26_KERNEL)
- touch -c $(LINUX26_KERNEL)
+ cp -dpf $(LINUX26_DIR)/$(LINUX26_BINLOC) $(LINUX26_KERNEL)
+ touch -c $@
$(TARGET_DIR)/boot/$(LINUX26_BINLOC): $(LINUX26_KERNEL)
[ -d $(TARGET_DIR)/boot/ ] || mkdir $(TARGET_DIR)/boot
cp -a $(LINUX26_DIR)/$(LINUX26_BINLOC) $(LINUX26_DIR)/System.map $(TARGET_DIR)/boot/
- touch -c $(TARGET_DIR)/boot/$(LINUX26_BINLOC)
+ touch -c $@
$(TARGET_DIR)/lib/modules/$(LINUX26_VERSION)/modules.dep: $(LINUX26_KERNEL)
rm -rf $(TARGET_DIR)/lib/modules/$(LINUX26_VERSION)
@@ -107,7 +109,7 @@ $(TARGET_DIR)/lib/modules/$(LINUX26_VERSION)/modules.dep: $(LINUX26_KERNEL)
DEPMOD=$(STAGING_DIR)/bin/$(GNU_TARGET_NAME)-depmod26 \
INSTALL_MOD_PATH=$(TARGET_DIR) modules_install
rm -f $(TARGET_DIR)/lib/modules/$(LINUX26_VERSION)/build
- touch -c $(TARGET_DIR)/lib/modules/$(LINUX26_VERSION)/modules.dep
+ touch -c $@
linux26-menuconfig: $(LINUX26_DIR)/.patched
[ -f $(LINUX26_DIR)/.config ] || cp $(LINUX26_KCONFIG) $(LINUX26_DIR)/.config