summaryrefslogtreecommitdiffstats
path: root/package/mtd
diff options
context:
space:
mode:
authorDavid Anders <dave123@abcsinc.com>2006-01-23 21:38:01 +0000
committerDavid Anders <dave123@abcsinc.com>2006-01-23 21:38:01 +0000
commitb0a9738dc259f9eee1a0b06edf364b8f181a10e7 (patch)
tree35a4980640ec2f7303177aad9843a35af2167262 /package/mtd
parentafbccc64c2d94cc1eb64c32a69d4643e87e4c30e (diff)
downloadbuildroot-novena-b0a9738dc259f9eee1a0b06edf364b8f181a10e7.tar.gz
buildroot-novena-b0a9738dc259f9eee1a0b06edf364b8f181a10e7.zip
minor syntax changes plus addition of stripping of binaries
Diffstat (limited to 'package/mtd')
-rw-r--r--package/mtd/mtd.mk13
1 files changed, 7 insertions, 6 deletions
diff --git a/package/mtd/mtd.mk b/package/mtd/mtd.mk
index 5546592dc..cf6c82f91 100644
--- a/package/mtd/mtd.mk
+++ b/package/mtd/mtd.mk
@@ -3,8 +3,9 @@
# mtd provides jffs2 utilities
#
#############################################################
-MTD_SOURCE=mtd_20050122.orig.tar.gz
-MTD_SITE=http://ftp.debian.org/debian/pool/main/m/mtd
+MTD_SOURCE := mtd_20050122.orig.tar.gz
+MTD_SITE := http://ftp.debian.org/debian/pool/main/m/mtd
+MTD_HOST_DIR := $(TOOL_BUILD_DIR)/mtd-20050122.orig
#############################################################
#
@@ -12,9 +13,8 @@ MTD_SITE=http://ftp.debian.org/debian/pool/main/m/mtd
# needed by target/jffs2root.
#
#############################################################
-MKFS_JFFS2 = $(MTD_HOST_DIR)/util/mkfs.jffs2
+MKFS_JFFS2 := $(MTD_HOST_DIR)/util/mkfs.jffs2
-MTD_HOST_DIR := $(TOOL_BUILD_DIR)/mtd-20050122.orig
$(DL_DIR)/$(MTD_SOURCE):
$(WGET) -P $(DL_DIR) $(MTD_SITE)/$(MTD_SOURCE)
@@ -44,7 +44,7 @@ mtd-host-dirclean:
# build mtd for use on the target system
#
#############################################################
-MTD_DIR:=$(BUILD_DIR)/mtd-20050122.orig
+MTD_DIR := $(BUILD_DIR)/mtd-20050122.orig
$(MTD_DIR)/.unpacked: $(DL_DIR)/$(MTD_SOURCE)
zcat $(DL_DIR)/$(MTD_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
@@ -86,7 +86,8 @@ MTD_TARGETS := $(addprefix $(TARGET_DIR)/usr/sbin/, $(MTD_TARGETS_y))
$(MTD_TARGETS): $(TARGET_DIR)/usr/sbin/% : $(MTD_DIR)/util/%
cp -f $< $@
-
+ $(STRIP) $@
+
mtd: zlib $(MTD_TARGETS)
mtd-source: $(DL_DIR)/$(MTD_SOURCE)