2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
10 include $(INCLUDE_DIR
)/kernel.mk
15 PKG_BUILD_DIR
:= $(KERNEL_BUILD_DIR
)/$(PKG_NAME
)
17 include $(INCLUDE_DIR
)/package.mk
22 TITLE
:=Update utility for trx firmware images
25 define Package
/mtd
/description
26 This package contains an utility useful to upgrade from other firmware or
27 older OpenWrt releases.
31 mkdir
-p
$(PKG_BUILD_DIR
)
32 $(CP
) .
/src
/* $(PKG_BUILD_DIR
)/
36 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
37 $(TARGET_CONFIGURE_OPTS
) \
38 CFLAGS
="$(TARGET_CFLAGS) -Dtarget_$(BOARD)=1"
41 define Package
/mtd
/install
42 $(INSTALL_DIR
) $(1)/sbin
43 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/mtd
$(1)/sbin
/
46 $(eval
$(call BuildPackage
,mtd
))