fix unnecessary recompiling of packages
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 22 Oct 2005 14:37:56 +0000 (14:37 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 22 Oct 2005 14:37:56 +0000 (14:37 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2239 3c298f89-4303-0410-b956-a3cf2f4a3e73

target/linux/linux-2.4/Makefile
target/linux/linux-2.6/Makefile

index f455c92..4fd8e21 100644 (file)
@@ -251,6 +251,11 @@ $(STAGING_DIR)/include/linux/version.h: $(LINUX_DIR)/.configured
 $(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): 
@@ -271,11 +276,6 @@ prepare: $(LINUX_DIR)/.configured
 compile:
        @$(PKG_TRACE) Compiling...
        $(MAKE) $(STAMP_DIR)/.linux-compile $(MAKE_TRACE)
-       ln -sf $(LINUX_BUILD_DIR)/linux-$(LINUX_VERSION) $(LINUX_DIR)
-       @$(TRACE) target/linux/package
-       $(MAKE) -C $(TOPDIR)/target/linux/package \
-               $(KPKG_MAKEOPTS) \
-               compile
 
 install: compile $(TARGET_MODULES_DIR) $(KERNEL_IPKG)
        rm -rf $(LINUX_BUILD_DIR)/root*
index 7c25475..9ff3ed7 100644 (file)
@@ -235,6 +235,11 @@ $(KERNEL_IPKG):
 $(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)
@@ -242,11 +247,6 @@ prepare: $(LINUX_DIR)/.configured
 compile:
        @$(PKG_TRACE) Compiling...
        $(MAKE) $(STAMP_DIR)/.linux-compile $(MAKE_TRACE)
-       ln -sf $(LINUX_BUILD_DIR)/linux-$(LINUX_VERSION) $(LINUX_DIR)
-       @$(TRACE) target/linux/package
-       $(MAKE) -C $(TOPDIR)/target/linux/package \
-               $(KPKG_MAKEOPTS) \
-               compile
 
 install: compile $(TARGET_MODULES_DIR) $(KERNEL_IPKG)
        rm -rf $(LINUX_BUILD_DIR)/root*
This page took 0.02916 seconds and 4 git commands to generate.