aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2005-04-21 18:09:41 +0000
committerFelix Fietkau <nbd@openwrt.org>2005-04-21 18:09:41 +0000
commitc349f38e2434068a78e503f9fab0c81f5abb67c3 (patch)
tree0494c8119ae8813ac49b5dc71cb6c332b6be2cc8 /package
parentb4312b447c9f06811d6ac1dc773fbf9eb4aa2575 (diff)
downloadupstream-c349f38e2434068a78e503f9fab0c81f5abb67c3.tar.gz
upstream-c349f38e2434068a78e503f9fab0c81f5abb67c3.tar.bz2
upstream-c349f38e2434068a78e503f9fab0c81f5abb67c3.zip
fix sdk build
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@699 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/Makefile2
-rw-r--r--package/linux/linux.mk9
2 files changed, 7 insertions, 4 deletions
diff --git a/package/Makefile b/package/Makefile
index 70761f537f..16839ebff4 100644
--- a/package/Makefile
+++ b/package/Makefile
@@ -112,7 +112,7 @@ ifeq ($(BR2_PACKAGE_SNORT_PGSQL),y)
snort-compile: postgresql-compile
endif
-sdk-compile: $(DEV_LIBS_COMPILE) $(SDK_DEFAULT_COMPILE)
+sdk-compile: $(DEV_LIBS_COMPILE) $(SDK_DEFAULT_COMPILE) openwrt-install
$(patsubst %,%-prepare,$(package-y) $(package-m) $(package-)): linux-install
%-prepare:
diff --git a/package/linux/linux.mk b/package/linux/linux.mk
index 43417a4114..0e216527f6 100644
--- a/package/linux/linux.mk
+++ b/package/linux/linux.mk
@@ -79,10 +79,13 @@ $(LINUX_DIR)/$(LINUX_BINLOC): $(LINUX_DIR)/.depend_done
$(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_KARCH) PATH=$(TARGET_PATH) $(LINUX_FORMAT)
$(LINUX_KERNEL): $(LINUX_DIR)/$(LINUX_BINLOC)
- cp -fa $(LINUX_DIR)/$(LINUX_BINLOC) $(LINUX_KERNEL)
+ cp -fa $< $@
touch -c $(LINUX_KERNEL)
+
+$(LINUX_IMAGE): $(LINUX_KERNEL)
+ cat $^ | $(BUILD_DIR)/lzma/lzma e -si -so -eos > $@ || (rm -f $@ && false)
-$(LINUX_DIR)/.modules_done: $(LINUX_KERNEL)
+$(LINUX_DIR)/.modules_done: $(LINUX_KERNEL) $(LINUX_IMAGE)
rm -rf $(BUILD_DIR)/modules
$(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_KARCH) PATH=$(TARGET_PATH) modules
$(MAKE) -C $(LINUX_DIR) DEPMOD=true INSTALL_MOD_PATH=$(BUILD_DIR)/modules modules_install
@@ -102,7 +105,7 @@ linux-source: $(DL_DIR)/$(LINUX_SOURCE)
# This has been renamed so we do _NOT_ by default run this on 'make clean'
linuxclean: clean
- rm -f $(LINUX_KERNEL)
+ rm -f $(LINUX_KERNEL) $(LINUX_IMAGE)
-$(MAKE) -C $(LINUX_DIR) clean
linux-dirclean: