cleanup
authorMike Baker <mbm@openwrt.org>
Fri, 4 Mar 2005 04:43:26 +0000 (04:43 +0000)
committerMike Baker <mbm@openwrt.org>
Fri, 4 Mar 2005 04:43:26 +0000 (04:43 +0000)
SVN-Revision: 304

openwrt/target/Makefile.in
openwrt/target/jffs2/jffs2root.mk

index aeceb3c149c983d3368e715daac9a134ab4df2c1..d40fd158d786a6072a6f572c53f6a9e31537d46b 100644 (file)
@@ -1,28 +1,18 @@
 # Default target skeleton stuff, may be overridden
 EXTRAVERSION:=
-XXX:=
 TARGET_SKELETON=target/default/skel.tar.gz
 TARGET_SKEL_DIR=target/default/target_skeleton
 
 include target/device/Makefile.in
 
-ifeq ($(strip $(BR2_TARGET_ROOTFS_JFFS2)),y)
-include target/jffs2/blocksize.mk
-JFFS2FLAGS+=-a $(JFFS2_BLOCK_SIZE) 
-endif
-
 openwrt-linux.trx: openwrt-trx
-       @PATH=$(TARGET_PATH) trx -o openwrt-linux$(EXTRAVERSION).trx \
+       PATH=$(TARGET_PATH) trx -o openwrt-linux$(EXTRAVERSION).trx \
         $(LINUX_DIR)/$(LINUX_BINLOC) $(JFFS2FLAGS) $(IMAGE).$(ROOTFS)
 
 openwrt-code.bin: openwrt-addpattern openwrt-linux.trx
-       @PATH=$(TARGET_PATH) addpattern -2 -i  openwrt-linux$(EXTRAVERSION).trx \
+       PATH=$(TARGET_PATH) addpattern -2 -i  openwrt-linux$(EXTRAVERSION).trx \
        -o openwrt-$(TAG)-code$(EXTRAVERSION).bin -g
-       @sed -i -e "1s,^W54S,$(TAG)," openwrt-$(TAG)-code$(EXTRAVERSION).bin
-
-ifeq ($(strip $(BR2_TARGET_ROOTFS_JFFS2)),y)
-else
-endif
+       @$(SED) "1s,^W54S,$(TAG)," openwrt-$(TAG)-code$(EXTRAVERSION).bin
 
 openwrt-image-clean: 
        @-rm openwrt-* 2>/dev/null
index b14f2d0f76c06d971690ff0039801cfdf0f4d54c..5e9380821b8e1a548001b070a61718c086565086 100644 (file)
@@ -46,6 +46,7 @@ jffs2root-dirclean:
 ifeq ($(strip $(BR2_TARGET_ROOTFS_JFFS2)),y)
 TARGETS+=openwrt-image
 ROOTFS=jffs2
+JFFS2FLAGS=-a $(JFFS2_BLOCK_SIZE)
 
 openwrt-image: openwrt
        @make jffs2root openwrt-code.bin TAG=W54G \