2 # Copyright (C) 2016 Jiang Yutang <jiangyutang1978@gmail.com>
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
9 include $(INCLUDE_DIR
)/image.mk
11 PKG_NAME
:=uboot-layerscape
16 PKG_MIRROR_HASH
:=6aba7cb32d655dacb49bd188706bf1284159ae9b1fa69056df634b90070c3768
17 PKG_SOURCE_URL
:=https
://github.com
/fsl-jyt
/u-boot.git
18 PKG_SOURCE_VERSION
:=aefcbf4c2bb36e1f0ead61181e5fe1119b5683ad
20 PKG_BUILD_DIR
=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)-$(BUILD_VARIANT
)/$(PKG_NAME
)-$(PKG_VERSION
)
22 PKG_LICENSE
:=GPL-2.0 GPL-2.0
+
23 PKG_LICENSE_FILES
:=Licenses
/README
25 include $(INCLUDE_DIR
)/package.mk
33 define uboot
/ls1043ardb
34 TITLE
:=U-Boot
$(PKG_NAME
)-$(PKG_VERSION
) for NXP ls1043ardb
64b Dev Board
38 define uboot
/ls1046ardb
39 TITLE
:=U-Boot
$(PKG_NAME
)-$(PKG_VERSION
) for NXP ls1046ardb
64b Dev Board
40 CONFIG
=ls1046ardb_qspi
43 define uboot
/ls1012ardb
44 TITLE
:=U-Boot
$(PKG_NAME
)-$(PKG_VERSION
) for NXP ls1012ardb
64b Dev Board
45 CONFIG
=ls1012ardb_qspi
54 define Package
/uboot
/template
55 define Package
/uboot-layerscape-64b-
$(1)
57 CATEGORY
:=Boot Loaders
58 DEPENDS
:= @TARGET_layerscape_64b
60 URL
:=http
://git.freescale.com
/git
/cgit.cgi
/ppc
/sdk
/u-boot.git
/snapshot
62 MAINTAINER
:=Jiang Yutang
<jiangyutang1978@gmail.com
>
66 define BuildUBootPackage
67 $(eval
$(uboot
/Default
))
69 $(call Package
/uboot
/template
,$(1),$(TITLE
))
73 $(eval
$(call uboot
/$(BUILD_VARIANT
)))
74 UBOOT_CONFIG
:=$(if
$(CONFIG
),$(CONFIG
),$(BUILD_VARIANT
))
75 UBOOT_IMAGE
:=$(if
$(IMAGE
),$(IMAGE
),u-boot-dtb.bin
)
78 define Build
/Configure
79 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
80 $(UBOOT_CONFIG
)_config
84 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
85 CROSS_COMPILE
=$(TARGET_CROSS
) DTC
=$(LINUX_DIR
)/scripts
/dtc
/dtc
88 define Package
/uboot
/install/default
89 $(CP
) $(PKG_BUILD_DIR
)/$(UBOOT_IMAGE
) $(KDIR
)/$(1)-64b-uboot.bin
92 define Package
/uboot
/install/template
93 define Package
/uboot-layerscape-64b-
$(1)/install
94 $(call Package
/uboot
/install/default
,$(2))
98 $(foreach u
,$(UBOOTS
), \
99 $(eval
$(call Package
/uboot
/install/template
,$(u
),$(u
))) \
102 $(foreach u
,$(UBOOTS
), \
103 $(eval
$(call BuildUBootPackage
,$(u
))) \
104 $(eval
$(call BuildPackage
,uboot-layerscape-64b-
$(u
))) \