3 include $(TOPDIR
)/rules.mk
7 PKG_MD5SUM
:= 2681e6db8e0fe6095f6a90ad9b3f2d33
9 PKG_SOURCE_SITE
:= http
://wl500g.dyndns.org
/loader
/
10 PKG_SOURCE_FILE
:= $(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
11 PKG_SOURCE_CAT
:= zcat
12 PKG_SOURCE_DIR
:= $(PKG_NAME
)-$(PKG_VERSION
)
13 PKG_BUILD_DIR
:= $(BUILD_DIR
)/$(PKG_SOURCE_DIR
)
15 $(DL_DIR
)/$(PKG_SOURCE_FILE
):
17 $(SCRIPT_DIR
)/download.pl
$(DL_DIR
) $(PKG_SOURCE_FILE
) $(PKG_MD5SUM
) $(PKG_SOURCE_SITE
)
19 $(PKG_BUILD_DIR
)/.patched
: $(DL_DIR
)/$(PKG_SOURCE_FILE
)
20 mkdir
-p
$(TOOL_BUILD_DIR
)
21 $(PKG_SOURCE_CAT
) $(DL_DIR
)/$(PKG_SOURCE_FILE
) |
tar -C
$(BUILD_DIR
) $(TAR_OPTIONS
) -
22 $(PATCH
) $(PKG_BUILD_DIR
) .
/patches
23 touch
$(PKG_BUILD_DIR
)/.patched
25 $(PKG_BUILD_DIR
)/loader.gz
: $(PKG_BUILD_DIR
)/.patched
26 $(MAKE
) -C
$(PKG_BUILD_DIR
) CC
=$(TARGET_CC
) \
27 LD
=$(TARGET_CROSS
)ld CROSS_COMPILE
=$(TARGET_CROSS
)
29 $(BUILD_DIR
)/lzmaldr
: $(PKG_BUILD_DIR
)/loader.gz
32 source
: $(DL_DIR
)/$(PKG_SOURCE_FILE
)
33 prepare
: $(PKG_BUILD_DIR
)/.patched
34 compile
: $(BUILD_DIR
)/lzmaldr
38 rm -rf
$(PKG_BUILD_DIR
)
39 rm -f
$(BUILD_DIR
)/lzmaldr