[rdc] 2.6.27 also needs to hack the command line passed to the kernel
[openwrt.git] / package / mtd / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9 include $(INCLUDE_DIR)/kernel.mk
10
11 PKG_NAME:=mtd
12 PKG_RELEASE:=8
13
14 PKG_BUILD_DIR := $(KERNEL_BUILD_DIR)/$(PKG_NAME)
15
16 include $(INCLUDE_DIR)/package.mk
17
18 define Package/mtd
19 SECTION:=utils
20 CATEGORY:=Base system
21 TITLE:=Update utility for trx firmware images
22 endef
23
24 define Package/mtd/description
25 This package contains an utility useful to upgrade from other firmware or
26 older OpenWrt releases.
27 endef
28
29 define Build/Prepare
30 mkdir -p $(PKG_BUILD_DIR)
31 $(CP) ./src/* $(PKG_BUILD_DIR)/
32 endef
33
34 target=$(firstword $(subst -, ,$(BOARD)))
35
36 define Build/Compile
37 $(MAKE) -C $(PKG_BUILD_DIR) \
38 $(TARGET_CONFIGURE_OPTS) \
39 TARGET=$(target) \
40 CFLAGS="$(TARGET_CFLAGS) -Dtarget_$(target)=1 -Wall"
41 endef
42
43 define Package/mtd/install
44 $(INSTALL_DIR) $(1)/sbin
45 $(INSTALL_BIN) $(PKG_BUILD_DIR)/mtd $(1)/sbin/
46 endef
47
48 $(eval $(call BuildPackage,mtd))
This page took 0.051289 seconds and 5 git commands to generate.