OpenWrt – Blame information for rev 3
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | # |
2 | # Copyright (C) 2006-2014 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 | |||
10 | PKG_NAME:=uboot-envtools |
||
11 | PKG_DISTNAME:=u-boot |
||
12 | PKG_VERSION:=2018.03 |
||
3 | office | 13 | PKG_RELEASE:=1 |
1 | office | 14 | |
15 | PKG_SOURCE_PROTO:=git |
||
16 | PKG_SOURCE:=$(PKG_DISTNAME)-$(PKG_VERSION).tar.xz |
||
17 | PKG_SOURCE_SUBDIR:=$(PKG_DISTNAME)-$(PKG_VERSION) |
||
18 | PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_DISTNAME)-$(PKG_VERSION) |
||
19 | PKG_SOURCE_URL:=https://git.denx.de/u-boot.git |
||
20 | PKG_SOURCE_VERSION:=f95ab1fb6e37f0601f397091bb011edf7a98b890 |
||
21 | PKG_MIRROR_HASH:=b50d8b6fe0d90b92c8c147457b1b4c2ed1cdb03191085cfc57fdad77c0bfffab |
||
22 | |||
23 | PKG_BUILD_DEPENDS:=fstools |
||
24 | |||
25 | PKG_LICENSE:=GPL-2.0 GPL-2.0+ |
||
26 | PKG_LICENSE_FILES:=Licenses/README |
||
27 | |||
28 | PKG_FLAGS:=nonshared |
||
29 | |||
30 | PKG_BUILD_PARALLEL:=1 |
||
31 | |||
32 | include $(INCLUDE_DIR)/package.mk |
||
33 | |||
34 | define Package/uboot-envtools |
||
35 | SECTION:=utils |
||
36 | CATEGORY:=Utilities |
||
37 | SUBMENU:=Boot Loaders |
||
38 | TITLE:=read/modify U-Boot bootloader environment |
||
39 | URL:=http://www.denx.de/wiki/U-Boot |
||
40 | endef |
||
41 | |||
42 | define Package/uboot-envtools/description |
||
43 | This package includes tools to read and modify U-Boot bootloader environment. |
||
44 | endef |
||
45 | |||
46 | define Build/Configure |
||
47 | touch $(PKG_BUILD_DIR)/include/config.h |
||
48 | mkdir -p $(PKG_BUILD_DIR)/include/config |
||
49 | touch $(PKG_BUILD_DIR)/include/config/auto.conf |
||
50 | mkdir -p $(PKG_BUILD_DIR)/include/generated |
||
51 | touch $(PKG_BUILD_DIR)/include/generated/autoconf.h |
||
52 | endef |
||
53 | |||
54 | TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include |
||
55 | |||
56 | define Build/Compile |
||
57 | $(MAKE) -C $(PKG_BUILD_DIR) \ |
||
58 | CROSS_COMPILE="$(TARGET_CROSS)" \ |
||
59 | TARGET_CFLAGS="$(TARGET_CFLAGS)" \ |
||
60 | HOSTLDFLAGS= \ |
||
61 | no-dot-config-targets=envtools \ |
||
62 | envtools |
||
63 | endef |
||
64 | |||
65 | define Package/uboot-envtools/conffiles |
||
66 | /etc/config/ubootenv |
||
67 | /etc/fw_env.config |
||
68 | endef |
||
69 | |||
70 | define Package/uboot-envtools/install |
||
71 | $(INSTALL_DIR) $(1)/usr/sbin |
||
72 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/tools/env/fw_printenv $(1)/usr/sbin |
||
73 | $(LN) fw_printenv $(1)/usr/sbin/fw_setenv |
||
74 | $(INSTALL_DIR) $(1)/lib |
||
75 | $(INSTALL_DATA) ./files/uboot-envtools.sh $(1)/lib |
||
76 | $(INSTALL_DIR) $(1)/etc/uci-defaults |
||
77 | $(if $(wildcard ./files/$(BOARD)), \ |
||
78 | $(INSTALL_DATA) ./files/$(BOARD) \ |
||
79 | $(1)/etc/uci-defaults/30_uboot-envtools \ |
||
80 | ) |
||
81 | endef |
||
82 | |||
83 | $(eval $(call BuildPackage,uboot-envtools)) |