summaryrefslogtreecommitdiffstats
path: root/package/loader/Makefile
diff options
context:
space:
mode:
authorkaloz <kaloz@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-04-02 16:43:51 +0000
committerkaloz <kaloz@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-04-02 16:43:51 +0000
commitcf380b81e891eeefe19325e93493793f697bf16d (patch)
treedef971cf3642e7b68a0d8b666ce7986860134e6b /package/loader/Makefile
parent52c72a7787edba7a80290e9cdddab69d5663b748 (diff)
add missing stuff for lzma bootloader
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@522 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/loader/Makefile')
-rw-r--r--package/loader/Makefile39
1 files changed, 39 insertions, 0 deletions
diff --git a/package/loader/Makefile b/package/loader/Makefile
new file mode 100644
index 000000000..bfeca21c9
--- /dev/null
+++ b/package/loader/Makefile
@@ -0,0 +1,39 @@
+# $Id$
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME := loader
+PKG_VERSION := 0.03
+PKG_MD5SUM := 2681e6db8e0fe6095f6a90ad9b3f2d33
+
+PKG_SOURCE_SITE := http://wl500g.dyndns.org/loader/
+PKG_SOURCE_FILE := $(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_CAT := zcat
+PKG_SOURCE_DIR := $(PKG_NAME)-$(PKG_VERSION)
+PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_SOURCE_DIR)
+
+$(DL_DIR)/$(PKG_SOURCE_FILE):
+ mkdir -p $(DL_DIR)
+ $(SCRIPT_DIR)/download.pl $(DL_DIR) $(PKG_SOURCE_FILE) $(PKG_MD5SUM) $(PKG_SOURCE_SITE)
+
+$(PKG_BUILD_DIR)/.patched: $(DL_DIR)/$(PKG_SOURCE_FILE)
+ mkdir -p $(TOOL_BUILD_DIR)
+ $(PKG_SOURCE_CAT) $(DL_DIR)/$(PKG_SOURCE_FILE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+ $(PATCH) $(PKG_BUILD_DIR) ./patches
+ touch $(PKG_BUILD_DIR)/.patched
+
+$(PKG_BUILD_DIR)/loader.gz: $(PKG_BUILD_DIR)/.patched
+ $(MAKE) -C $(PKG_BUILD_DIR) CC=$(TARGET_CC) \
+ LD=$(TARGET_CROSS)ld CROSS_COMPILE=$(TARGET_CROSS)
+
+$(BUILD_DIR)/lzmaldr: $(PKG_BUILD_DIR)/loader.gz
+ cp $< $@
+
+source: $(DL_DIR)/$(PKG_SOURCE_FILE)
+prepare: $(PKG_BUILD_DIR)/.patched
+compile: $(BUILD_DIR)/lzmaldr
+install:
+
+clean:
+ rm -rf $(PKG_BUILD_DIR)
+ rm -f $(BUILD_DIR)/lzmaldr