#
#############################################################
+LINKSYS_TGZ_SITE=http://openwrt.openbsd-geek.de
LINKSYS_KERNEL_INCLUDE=$(BUILD_DIR)/linksys-kernel
# shared library stuff extracted from linksys firmware GPL sourcetree
linksys-shared-clean:
-$(MAKE) -C $(LINKSYS_SHARED_DIR) clean
+linksys-shared-dirclean:
+ rm -rf $(LINKSYS_SHARED_DIR)
# nvram tool extracted from linksys firmware GPL sourcetree
# WRT54GS_3_37_2_1109_US
linksys-nvram-clean:
-$(MAKE) -C $(LINKSYS_NVRAM_BUILD_DIR) clean
+linksys-nvram-dirclean:
+ rm -rf $(LINKSYS_NVRAM_DIR)
+
# wlconf tool extracted from linksys firmware GPL sourcetree
# WRT54GS_3_37_2_1109_US
LINKSYS_WLCONF_TGZ=linksys-wlconf.tar.gz
linksys-wlconf-clean:
-$(MAKE) -C $(LINKSYS_WLCONF_BUILD_DIR) clean
+linksys-wlconf-dirclean:
+ rm -rf $(LINKSYS_WLCONF_DIR)
# mtd tool
OPENWRT_MTD_SOURCE=package/openwrt/mtd.c
openwrt-mtd: $(TARGET_DIR)/$(OPENWRT_MTD_TARGET_BINARY)
+openwrt-mtd-clean:
+ rm $(TARGET_DIR)/$(OPENWRT_MTD_TARGET_BINARY)
+
+# jffs2root tool
+OPENWRT_JFFS2ROOT_SOURCE=package/openwrt/jffs2root.c
+OPENWRT_JFFS2ROOT_TARGET_BINARY:=sbin/jffs2root
+
+$(TARGET_DIR)/$(OPENWRT_JFFS2ROOT_TARGET_BINARY):
+ $(TARGET_CC) -o $(TARGET_DIR)/$(OPENWRT_JFFS2ROOT_TARGET_BINARY) $(OPENWRT_JFFS2ROOT_SOURCE)
+
+openwrt-jffs2root: $(TARGET_DIR)/$(OPENWRT_JFFS2ROOT_TARGET_BINARY)
+
+openwrt-jffs2root-clean:
+ rm $(TARGET_DIR)/$(OPENWRT_JFFS2ROOT_TARGET_BINARY)
+
# trx tool
OPENWRT_TRX_SOURCE=package/openwrt/trx.c
OPENWRT_TRX_TARGET=$(STAGING_DIR)/bin/trx
openwrt-trx: $(OPENWRT_TRX_TARGET)
+openwrt-trx-clean:
+ rm $(OPENWRT_TRX_TARGET)
+
# addpattern tool
OPENWRT_ADDPATTERN_SOURCE=package/openwrt/addpattern.c
OPENWRT_ADDPATTERN_TARGET=$(STAGING_DIR)/bin/addpattern
openwrt-addpattern: $(OPENWRT_ADDPATTERN_TARGET)
-openwrt: linksys-shared linksys-nvram linksys-wlconf openwrt-mtd openwrt-trx openwrt-addpattern
+openwrt-addpattern-clean:
+ rm $(OPENWRT_ADDPATTERN_TARGET)
+
+# sstrip tool
+OPENWRT_SSTRIP_SOURCE=package/openwrt/sstrip.c
+OPENWRT_SSTRIP_TARGET=$(STAGING_DIR)/bin/sstrip
+
+$(OPENWRT_SSTRIP_TARGET):
+ $(CC) -o $(OPENWRT_SSTRIP_TARGET) $(OPENWRT_SSTRIP_SOURCE)
+
+openwrt-sstrip: $(OPENWRT_SSTRIP_TARGET)
+
+openwrt-sstrip-clean:
+ rm $(OPENWRT_SSTRIP_TARGET)
+
+STRIP=$(OPENWRT_SSTRIP_TARGET)
+
+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