OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
Line 6... | Line 6... | |||
6 | # |
6 | # |
|
Line 7... | Line 7... | |||
7 | |
7 | |
|
Line 8... | Line 8... | |||
8 | include $(TOPDIR)/rules.mk |
8 | include $(TOPDIR)/rules.mk |
|
9 | |
9 | |
|
10 | PKG_NAME:=uboot-layerscape-armv8_32b |
10 | PKG_NAME:=uboot-layerscape-armv8_32b |
|
Line 11... | Line 11... | |||
11 | PKG_VERSION:=lsdk-1806 |
11 | PKG_SOURCE_DATE:=2018-01-22 |
|
12 | PKG_RELEASE:=1 |
12 | PKG_RELEASE:=1 |
|
13 | |
13 | |
|
14 | # Layerscape ARMv8 platforms use 64-bit u-boot to support both 32-bit and 64-bit |
14 | # Layerscape ARMv8 platforms use 64-bit u-boot to support both 32-bit and 64-bit |
|
15 | # kernel/rootfs. Since OpenWrt could only provide 32-bit toolchain for 32-bit targets, |
15 | # kernel/rootfs. Since OpenWrt could only provide 32-bit toolchain for 32-bit targets, |
|
16 | # 64-bit u-boot images git tree is provided here whose source code actually is |
16 | # 64-bit u-boot images git tree is provided here whose source code actually is |
|
17 | # uboot-layerscape's source code. |
17 | # uboot-layerscape's source code. |
|
18 | PKG_SOURCE_PROTO:=git |
18 | PKG_SOURCE_PROTO:=git |
|
Line 19... | Line -... | |||
19 | PKG_SOURCE_URL:=https://github.com/yangbolu1991/u-boot-lede.git |
- | ||
20 | PKG_SOURCE_VERSION:=a2a01facee0918bf724b4f0aec6746e2f1271519 |
- | ||
21 | PKG_MIRROR_HASH:=5fcb58c14cdc934793ff315e178ad1d9d2ff55fcaac394b48ec116d1b11ca324 |
- | ||
22 | |
- | ||
23 | include $(INCLUDE_DIR)/package.mk |
- | ||
24 | |
- | ||
25 | define Package/uboot-layerscape-armv8_32b/Config |
- | ||
26 | define Package/u-boot-$(1)-image |
19 | PKG_SOURCE_URL:=https://github.com/yangbolu1991/u-boot-lede.git |
|
27 | SECTION:=boot |
- | ||
28 | CATEGORY:=Boot Loaders |
- | ||
29 | TITLE:=$(2) |
- | ||
30 | DEPENDS:=@TARGET_layerscape_armv8_32b |
- | ||
Line 31... | Line -... | |||
31 | CONFIG:=$(3) |
- | ||
32 | ENV_SIZE:=$(4) |
- | ||
33 | endef |
20 | PKG_SOURCE_VERSION:=40a40dfd8136fcc314dd442a3b24a41b1e5652dd |
|
34 | endef |
21 | PKG_MIRROR_HASH:=3dde5a33d19c573cbdce74f5d7edb6c5ca2a26a39d503c3efe5d5ad06f01e9f5 |
|
35 | |
- | ||
Line 36... | Line 22... | |||
36 | define Package/uboot-layerscape-armv8_32b/ls1012ardb |
22 | |
|
- | 23 | PKG_MAINTAINER:=Yangbo Lu <yangbo.lu@nxp.com> |
||
37 | TITLE:=U-Boot image for NXP LS1012ARDB |
24 | |
|
38 | CONFIG:=ls1012ardb-uboot.bin |
25 | include $(INCLUDE_DIR)/package.mk |
|
- | 26 | include $(INCLUDE_DIR)/kernel.mk |
||
- | 27 | |
||
39 | ENV_SIZE:=0x40000 |
28 | define Package/uboot-layerscape-armv8_32b |
|
40 | endef |
29 | SECTION:=boot |
|
Line 41... | Line -... | |||
41 | |
- | ||
42 | define Package/uboot-layerscape-armv8_32b/ls1012afrwy |
- | ||
43 | TITLE:=U-Boot image for NXP LS1012FRWY |
- | ||
44 | CONFIG:=ls1012afrwy-uboot.bin |
30 | CATEGORY:=Boot Loaders |
|
45 | ENV_SIZE:=0x10000 |
- | ||
Line 46... | Line -... | |||
46 | endef |
- | ||
47 | |
- | ||
48 | define Package/uboot-layerscape-armv8_32b/ls1043ardb |
- | ||
49 | TITLE:=U-Boot image for NXP LS1043ARDB |
- | ||
50 | CONFIG:=ls1043ardb-uboot.bin |
31 | DEPENDS:=@TARGET_layerscape_armv8_32b |
|
Line 51... | Line 32... | |||
51 | ENV_SIZE:=0x20000 |
32 | TITLE:=U-Boot for ARMv8 32-bit based Layerscape boards |
|
- | 33 | DEFAULT:=y |
||
52 | endef |
34 | HIDDEN:=1 |
|
Line 53... | Line -... | |||
53 | |
- | ||
54 | define Package/uboot-layerscape-armv8_32b/ls1046ardb |
35 | endef |
|
55 | TITLE:=U-Boot image for NXP LS1046ARDB |
36 | |
|
56 | CONFIG:=ls1046ardb-uboot.bin |
37 | define Build/Configure |
|
57 | ENV_SIZE:=0x2000 |
38 | |
|
58 | endef |
39 | endef |
|
59 | |
40 | |
|
60 | define Build/Compile |
- | ||
61 | endef |
41 | define Build/Compile |
|
Line 62... | Line -... | |||
62 | |
- | ||
63 | define Package/uboot-layerscape-armv8_32b/Install |
- | ||
64 | define Package/u-boot-$(1)-image/install |
- | ||
65 | $(INSTALL_DIR) $(STAGING_DIR_IMAGE) |
- | ||
66 | $(CP) $(PKG_BUILD_DIR)/$(CONFIG) $(STAGING_DIR_IMAGE)/ |
- | ||
67 | $(PKG_BUILD_DIR)/tools/mkenvimage -s $(ENV_SIZE) \ |
- | ||
68 | -o $(STAGING_DIR_IMAGE)/$(1)-uboot-env.bin \ |
- | ||
69 | ../uboot-layerscape/files/$(1)-uEnv.txt |
42 | |
|
70 | endef |
- | ||
71 | endef |
- | ||
72 | |
- | ||
73 | UBOOTS := \ |
- |