OpenWrt – Blame information for rev 3
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | # |
2 | # Copyright (C) 2006-2012 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 |
||
3 | office | 12 | PKG_RELEASE:=23 |
1 | office | 13 | |
14 | PKG_BUILD_DIR := $(KERNEL_BUILD_DIR)/$(PKG_NAME) |
||
15 | STAMP_PREPARED := $(STAMP_PREPARED)_$(call confvar,CONFIG_MTD_REDBOOT_PARTS) |
||
16 | |||
17 | PKG_LICENSE:=GPL-2.0+ |
||
18 | PKG_LICENSE_FILES:= |
||
19 | |||
20 | PKG_FLAGS:=nonshared |
||
21 | |||
22 | include $(INCLUDE_DIR)/package.mk |
||
23 | |||
24 | define Package/mtd |
||
25 | SECTION:=utils |
||
26 | CATEGORY:=Base system |
||
27 | DEPENDS:=+libubox |
||
28 | TITLE:=Update utility for trx firmware images |
||
29 | endef |
||
30 | |||
31 | define Package/mtd/description |
||
32 | This package contains an utility useful to upgrade from other firmware or |
||
33 | older OpenWrt releases. |
||
34 | endef |
||
35 | |||
36 | target=$(firstword $(subst -, ,$(BOARD))) |
||
37 | |||
38 | MAKE_FLAGS += TARGET="$(target)" |
||
39 | TARGET_CFLAGS := $(TARGET_CFLAGS) -Dtarget_$(target)=1 -Wall |
||
40 | |||
41 | ifdef CONFIG_MTD_REDBOOT_PARTS |
||
42 | MAKE_FLAGS += FIS_SUPPORT=1 |
||
43 | TARGET_CFLAGS += -DFIS_SUPPORT=1 |
||
44 | endif |
||
45 | |||
46 | define Package/mtd/install |
||
47 | $(INSTALL_DIR) $(1)/sbin |
||
48 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/mtd $(1)/sbin/ |
||
49 | endef |
||
50 | |||
51 | $(eval $(call BuildPackage,mtd)) |