From cf647cea3d68e5298343294fc2c12e0c9a479778 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Thu, 15 Feb 2007 11:12:15 +0000 Subject: [PATCH] - allow to run linux26-menuconfig and uclibc-menuconfig in a pristine checkout --- target/linux26.mk | 2 +- toolchain/kernel-headers/kernel-headers-new.makefile | 1 + toolchain/uClibc/uclibc.mk | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/target/linux26.mk b/target/linux26.mk index efd0474065..87020d7545 100644 --- a/target/linux26.mk +++ b/target/linux26.mk @@ -111,7 +111,7 @@ $(TARGET_DIR)/lib/modules/$(LINUX26_VERSION)/modules.dep: $(LINUX26_KERNEL) rm -f $(TARGET_DIR)/lib/modules/$(LINUX26_VERSION)/build touch -c $@ -linux26-menuconfig: $(LINUX26_DIR)/.patched +linux26-menuconfig: $(LINUX26_DIR)/.patched host-sed [ -f $(LINUX26_DIR)/.config ] || cp $(LINUX26_KCONFIG) $(LINUX26_DIR)/.config $(MAKE) $(LINUX26_MAKE_FLAGS) -C $(LINUX26_DIR) menuconfig -[ -f $(LINUX26_DIR)/.config ] && touch $(LINUX26_DIR)/.configured diff --git a/toolchain/kernel-headers/kernel-headers-new.makefile b/toolchain/kernel-headers/kernel-headers-new.makefile index e85001bf98..ff0a78a976 100644 --- a/toolchain/kernel-headers/kernel-headers-new.makefile +++ b/toolchain/kernel-headers/kernel-headers-new.makefile @@ -23,6 +23,7 @@ ifeq ($(LINUX_HEADERS_IS_KERNEL),y) $(LINUX_HEADERS_UNPACK_DIR)/.unpacked: $(DL_DIR)/$(LINUX_HEADERS_SOURCE) rm -rf $(LINUX_HEADERS_DIR) + [ -d $(BUILD_DIR) ] || $(INSTALL) -d $(BUILD_DIR) $(LINUX_HEADERS_CAT) $(DL_DIR)/$(LINUX_HEADERS_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - touch $@ diff --git a/toolchain/uClibc/uclibc.mk b/toolchain/uClibc/uclibc.mk index 64f342226e..15d7810e33 100644 --- a/toolchain/uClibc/uclibc.mk +++ b/toolchain/uClibc/uclibc.mk @@ -81,6 +81,7 @@ endif uclibc-unpacked: $(UCLIBC_DIR)/.unpacked $(UCLIBC_DIR)/.unpacked: $(DL_DIR)/$(UCLIBC_SOURCE) $(UCLIBC_LOCALE_DATA) + [ -d $(TOOL_BUILD_DIR) ] || $(INSTALL) -d $(TOOL_BUILD_DIR) $(UCLIBC_CAT) $(DL_DIR)/$(UCLIBC_SOURCE) | tar -C $(TOOL_BUILD_DIR) $(TAR_OPTIONS) - toolchain/patch-kernel.sh $(UCLIBC_DIR) toolchain/uClibc/ uClibc-$(UCLIBC_VER)-\*.patch ifneq ($(BR2_ENABLE_LOCALE),) @@ -253,7 +254,7 @@ $(UCLIBC_DIR)/lib/libc.a: $(UCLIBC_DIR)/.configured $(LIBFLOAT_TARGET) all touch -c $(UCLIBC_DIR)/lib/libc.a -uclibc-menuconfig: $(UCLIBC_DIR)/.config +uclibc-menuconfig: $(UCLIBC_DIR)/.config host-sed $(MAKE1) -C $(UCLIBC_DIR) \ PREFIX=$(TOOL_BUILD_DIR)/uClibc_dev/ \ DEVEL_PREFIX=/usr/ \ -- 2.30.2