summaryrefslogtreecommitdiff
path: root/openwrt
diff options
context:
space:
mode:
authorwbx <wbx@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-02-21 06:03:54 +0000
committerwbx <wbx@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-02-21 06:03:54 +0000
commit65e5ea929c03077feb0697e0f35a6b039ac07a2a (patch)
treec7b5c1bae00f6b2717aed25be5a6c0c3d3737808 /openwrt
parentb46c70d5233811b6bb176824069bd6b37f94f32e (diff)
remove DIST and add EXTRAVERSION, discussed with mbm. fixed dirclean target for linksys-stuff
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@279 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt')
-rw-r--r--openwrt/Makefile4
-rw-r--r--openwrt/package/config/mconf.c1
-rw-r--r--openwrt/package/openwrt/openwrt.mk10
-rw-r--r--openwrt/target/Makefile.in24
4 files changed, 24 insertions, 15 deletions
diff --git a/openwrt/Makefile b/openwrt/Makefile
index 43ee3ddba5..172e1b80c2 100644
--- a/openwrt/Makefile
+++ b/openwrt/Makefile
@@ -128,11 +128,11 @@ source: $(TARGETS_SOURCE)
#############################################################
clean:
rm -rf $(TARGET_DIR) $(IMAGE).*
- $(MAKE) $(DIST)-image-clean
+ $(MAKE) openwrt-image-clean
dirclean: $(TARGETS_DIRCLEAN)
rm -rf $(TARGET_DIR) $(IMAGE).*
- $(MAKE) $(DIST)-image-clean
+ $(MAKE) openwrt-image-dirclean
distclean: clean
rm -rf $(DL_DIR) $(BUILD_DIR) $(TOOL_BUILD_DIR)
diff --git a/openwrt/package/config/mconf.c b/openwrt/package/config/mconf.c
index 0db6f8f6c8..659e49cd64 100644
--- a/openwrt/package/config/mconf.c
+++ b/openwrt/package/config/mconf.c
@@ -705,6 +705,7 @@ int main(int ac, char **av)
conf_write(NULL);
printf("\n\n"
"*** End of Buildroot configuration.\n"
+ "*** After changing root fs, use make linux-dirclean.\n"
"*** Check the top-level Makefile for additional configuration options.\n\n");
} else
printf("\n\nYour Buildroot configuration changes were NOT saved.\n\n");
diff --git a/openwrt/package/openwrt/openwrt.mk b/openwrt/package/openwrt/openwrt.mk
index dcd18560ba..5c3f6b1059 100644
--- a/openwrt/package/openwrt/openwrt.mk
+++ b/openwrt/package/openwrt/openwrt.mk
@@ -62,7 +62,7 @@ linksys-nvram-clean:
-$(MAKE) -C $(LINKSYS_NVRAM_BUILD_DIR) clean
linksys-nvram-dirclean:
- rm -rf $(LINKSYS_NVRAM_BUILD_DIR)
+ rm -rf $(LINKSYS_NVRAM_DIR)
# wlconf tool extracted from linksys firmware GPL sourcetree
# WRT54GS_3_37_2_1109_US
@@ -94,7 +94,7 @@ linksys-wlconf-clean:
-$(MAKE) -C $(LINKSYS_WLCONF_BUILD_DIR) clean
linksys-wlconf-dirclean:
- rm -rf $(LINKSYS_WLCONF_BUILD_DIR)
+ rm -rf $(LINKSYS_WLCONF_DIR)
# mtd tool
OPENWRT_MTD_SOURCE=package/openwrt/mtd.c
@@ -144,5 +144,9 @@ openwrt-addpattern: $(OPENWRT_ADDPATTERN_TARGET)
openwrt-addpattern-clean:
rm $(OPENWRT_ADDPATTERN_TARGET)
-openwrt: linksys-shared linksys-nvram linksys-wlconf openwrt-mtd openwrt-trx openwrt-addpattern
+linksys: linksys-shared linksys-nvram linksys-wlconf
+
+openwrt: linksys openwrt-mtd openwrt-trx openwrt-addpattern openwrt-jffs2root
+
+openwrt-dirclean: linksys-shared-dirclean linksys-nvram-dirclean linksys-wlconf-dirclean
diff --git a/openwrt/target/Makefile.in b/openwrt/target/Makefile.in
index 7a212e489f..15cf6bdede 100644
--- a/openwrt/target/Makefile.in
+++ b/openwrt/target/Makefile.in
@@ -1,5 +1,5 @@
# Default target skeleton stuff, may be overridden
-DIST=openwrt
+EXTRAVERSION=
TARGET_SKELETON=target/default/skel.tar.gz
TARGET_SKEL_DIR=target/default/target_skeleton
@@ -10,16 +10,20 @@ JFFS2FLAGS+=-a 131072
endif
-$(DIST)-linux.trx: openwrt-trx
- PATH=$(TARGET_PATH) trx -o $(DIST)-linux.trx $(LINUX_DIR)/$(LINUX_BINLOC) $(JFFS2FLAGS) $(IMAGE).$(ROOTFS)
+openwrt-linux.trx: openwrt-trx
+ PATH=$(TARGET_PATH) trx -o openwrt-linux$(EXTRAVERSION).trx \
+ $(LINUX_DIR)/$(LINUX_BINLOC) $(JFFS2FLAGS) $(IMAGE).$(ROOTFS)
-$(DIST)-gs-code.bin: openwrt-addpattern $(DIST)-linux.trx
- PATH=$(TARGET_PATH) addpattern -2 -i $(DIST)-linux.trx -o $(DIST)-gs-code.bin -g
+openwrt-gs-code.bin: openwrt-addpattern openwrt-linux.trx
+ PATH=$(TARGET_PATH) addpattern -2 -i openwrt-linux$(EXTRAVERSION).trx \
+ -o openwrt-gs-code$(EXTRAVERSION).bin -g
-$(DIST)-g-code.bin: $(DIST)-gs-code.bin
- sed -e "1s,^W54S,W54G," < $(DIST)-gs-code.bin > $(DIST)-g-code.bin
+openwrt-g-code.bin: openwrt-gs-code.bin
+ sed -e "1s,^W54S,W54G," < openwrt-gs-code$(EXTRAVERSION).bin > openwrt-g-code$(EXTRAVERSION).bin
-openwrt-image: openwrt $(DIST)-g-code.bin
+openwrt-image: openwrt openwrt-g-code.bin
-$(DIST)-image-clean:
- @-rm $(DIST)-* 2>/dev/null
+openwrt-image-clean:
+ @-rm openwrt-* 2>/dev/null
+
+openwrt-image-dirclean: openwrt-dirclean