sync linux-2.6 makefile with the 2.4 one (will move some parts to a shared makefile later)

SVN-Revision: 2464
owl
Felix Fietkau 2005-11-12 23:01:46 +00:00
parent c5a06ccb7d
commit 095060b9ff
1 changed files with 18 additions and 17 deletions

View File

@ -428,6 +428,16 @@ $(STAGING_DIR)/include/linux/version.h: $(LINUX_DIR)/.configured
tar -ch -C $(LINUX_DIR)/include -f - linux | tar -xf - -C $(STAGING_DIR)/include/ tar -ch -C $(LINUX_DIR)/include -f - linux | tar -xf - -C $(STAGING_DIR)/include/
tar -ch -C $(LINUX_DIR)/include -f - asm | tar -xf - -C $(STAGING_DIR)/include/ tar -ch -C $(LINUX_DIR)/include -f - asm | tar -xf - -C $(STAGING_DIR)/include/
$(STAMP_DIR)/.linux-compile: $(LINUX_DIR)/.modules_done
@mkdir -p $(STAMP_DIR)
@$(MAKE) $(TARGETS)
ln -sf $(LINUX_BUILD_DIR)/linux-$(LINUX_VERSION) $(LINUX_DIR)
@$(TRACE) target/linux/package
$(MAKE) -C $(TOPDIR)/target/linux/package \
$(KPKG_MAKEOPTS) \
compile
touch $@
$(TARGET_MODULES_DIR): $(TARGET_MODULES_DIR):
-mkdir -p $(TARGET_MODULES_DIR) -mkdir -p $(TARGET_MODULES_DIR)
@ -441,16 +451,6 @@ $(KERNEL_IPKG):
fi fi
$(IPKG_BUILD) $(KERNEL_IDIR) $(LINUX_BUILD_DIR) $(MAKE_TRACE) $(IPKG_BUILD) $(KERNEL_IDIR) $(LINUX_BUILD_DIR) $(MAKE_TRACE)
$(STAMP_DIR)/.linux-compile: $(LINUX_DIR)/.modules_done
@mkdir -p $(STAMP_DIR)
@$(MAKE) $(TARGETS)
ln -sf $(LINUX_BUILD_DIR)/linux-$(LINUX_VERSION) $(LINUX_DIR)
@$(TRACE) target/linux/package
$(MAKE) -C $(TOPDIR)/target/linux/package \
$(KPKG_MAKEOPTS) \
compile
touch $@
source: $(DL_DIR)/$(LINUX_SOURCE) source: $(DL_DIR)/$(LINUX_SOURCE)
prepare: $(LINUX_DIR)/.configured prepare: $(LINUX_DIR)/.configured
compile: compile:
@ -466,17 +466,18 @@ install: compile $(TARGET_MODULES_DIR) $(KERNEL_IPKG)
@{ [ "$(INSTALL_TARGETS)" != "" ] && $(IPKG_KERNEL) install $(INSTALL_TARGETS) || true; } $(MAKE_TRACE) @{ [ "$(INSTALL_TARGETS)" != "" ] && $(IPKG_KERNEL) install $(INSTALL_TARGETS) || true; } $(MAKE_TRACE)
mostlyclean: mostlyclean:
rm -f $(STAMP_DIR)/.linux-compile
rm -f $(LINUX_BUILD_DIR)/linux-$(LINUX_VERSION)/.modules_done rm -f $(LINUX_BUILD_DIR)/linux-$(LINUX_VERSION)/.modules_done
rm -f $(LINUX_BUILD_DIR)/linux-$(LINUX_VERSION)/.drivers-unpacked rm -f $(LINUX_BUILD_DIR)/linux-$(LINUX_VERSION)/.drivers-unpacked
$(MAKE) -C $(LINUX_BUILD_DIR)/linux-$(LINUX_VERSION) clean $(MAKE) -C $(LINUX_BUILD_DIR)/linux-$(LINUX_VERSION) clean $(MAKE_TRACE)
rm -f $(LINUX_KERNEL) $(LINUX_IMAGE) rm -f $(LINUX_KERNEL) $(LINUX_IMAGE)
rebuild: rebuild:
-$(MAKE) mostlyclean -$(MAKE) mostlyclean
if [ -f $(LINUX_KERNEL) ]; then \ if [ -f $(LINUX_KERNEL) ]; then \
$(MAKE) clean; \ $(MAKE) clean $(MAKE_TRACE); \
fi fi
$(MAKE) compile $(MAKE) compile $(MAKE_TRACE)
clean: clean:
rm -f $(STAMP_DIR)/.linux-compile rm -f $(STAMP_DIR)/.linux-compile