2005-03-06 05:34:52 +02:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2005-05-28 12:17:29 +03:00
|
|
|
MTD_DIR:=$(BUILD_DIR)/mtd-20050122.orig
|
|
|
|
MTD_SOURCE=mtd_20050122.orig.tar.gz
|
|
|
|
MTD_SITE=http://ftp.debian.org/debian/pool/main/m/mtd
|
|
|
|
MTD_MD5SUM:=1f42c2cae08eb9e7b52d0c188f8d6338
|
|
|
|
MKFS_JFFS2=$(MTD_DIR)/util/mkfs.jffs2
|
2005-03-06 05:34:52 +02:00
|
|
|
|
2005-05-28 12:17:29 +03:00
|
|
|
$(DL_DIR)/$(MTD_SOURCE):
|
|
|
|
$(SCRIPT_DIR)/download.pl $(DL_DIR) $(MTD_SOURCE) $(MTD_MD5SUM) $(MTD_SITE)
|
|
|
|
|
|
|
|
$(MTD_DIR)/.unpacked: $(DL_DIR)/$(MTD_SOURCE)
|
|
|
|
zcat $(DL_DIR)/$(MTD_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
2005-07-02 11:08:56 +03:00
|
|
|
$(PATCH) $(MTD_DIR) ./patches
|
2005-05-28 12:17:29 +03:00
|
|
|
touch $(MTD_DIR)/.unpacked
|
|
|
|
|
|
|
|
$(MTD_DIR)/util/mkfs.jffs2: $(MTD_DIR)/.unpacked
|
|
|
|
$(MAKE) LINUXDIR=$(LINUX_DIR) -C $(MTD_DIR)/util
|
|
|
|
|
|
|
|
$(STAGING_DIR)/bin/mkfs.jffs2: $(MTD_DIR)/util/mkfs.jffs2
|
2006-02-02 01:53:19 +02:00
|
|
|
$(CP) $< $@
|
2005-03-06 05:34:52 +02:00
|
|
|
|
2005-05-28 12:17:29 +03:00
|
|
|
source: $(DL_DIR)/$(MTD_SOURCE)
|
|
|
|
prepare: $(MTD_DIR)/.unpacked
|
|
|
|
compile: $(MTD_DIR)/util/mkfs.jffs2 $(STAGING_DIR)/bin/mkfs.jffs2
|
|
|
|
install:
|
2006-06-01 02:29:05 +03:00
|
|
|
clean: FORCE
|
2005-05-28 12:17:29 +03:00
|
|
|
rm -rf $(MTD_DIR)
|
|
|
|
|