add a configuration option to enable full c99 math in libm. this is needed for funct...
[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 # $Id$
8
9 include $(TOPDIR)/rules.mk
10 include $(INCLUDE_DIR)/kernel.mk
11
12 PKG_NAME:=mtd
13 PKG_RELEASE:=4
14
15 PKG_BUILD_DIR := $(KERNEL_BUILD_DIR)/$(PKG_NAME)
16
17 include $(INCLUDE_DIR)/package.mk
18
19 define Package/mtd
20 SECTION:=utils
21 CATEGORY:=Base system
22 DEFAULT:=y
23 TITLE:=Update utility for trx firmware images
24 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 define Build/Compile
35 $(MAKE) -C $(PKG_BUILD_DIR) \
36 $(TARGET_CONFIGURE_OPTS) \
37 CFLAGS="$(TARGET_CFLAGS) -Dtarget_$(BOARD)=1"
38 endef
39
40 define Package/mtd/install
41 install -d -m0755 $(1)/sbin
42 install -m0755 $(PKG_BUILD_DIR)/mtd $(1)/sbin/
43 endef
44
45 $(eval $(call BuildPackage,mtd))
This page took 0.039084 seconds and 5 git commands to generate.