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_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
17 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
18 PKG_SOURCE_URL
:=https
://github.com
/fsl-jyt
/u-boot.git
19 PKG_SOURCE_VERSION
:=aefcbf4c2bb36e1f0ead61181e5fe1119b5683ad
21 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)-$(BUILD_VARIANT
)/$(PKG_NAME
)-$(PKG_VERSION
)
23 PKG_LICENSE
:=GPL-2.0 GPL-2.0
+
24 PKG_LICENSE_FILES
:=Licenses
/README
26 include $(INCLUDE_DIR
)/package.mk
34 define uboot
/ls1043ardb
35 TITLE
:=U-Boot
$(PKG_NAME
)-$(PKG_VERSION
) for NXP ls1043ardb
64b Dev Board
39 define uboot
/ls1012ardb
40 TITLE
:=U-Boot
$(PKG_NAME
)-$(PKG_VERSION
) for NXP ls1012ardb
64b Dev Board
41 CONFIG
=ls1012ardb_qspi
49 define Package
/uboot
/template
50 define Package
/uboot-layerscape-64b-
$(1)
52 CATEGORY
:=Boot Loaders
53 DEPENDS
:= @TARGET_layerscape_64b
55 URL
:=http
://git.freescale.com
/git
/cgit.cgi
/ppc
/sdk
/u-boot.git
/snapshot
57 MAINTAINER
:=Jiang Yutang
<jiangyutang1978@gmail.com
>
61 define BuildUBootPackage
62 $(eval
$(uboot
/Default
))
64 $(call Package
/uboot
/template
,$(1),$(TITLE
))
68 $(eval
$(call uboot
/$(BUILD_VARIANT
)))
69 UBOOT_CONFIG
:=$(if
$(CONFIG
),$(CONFIG
),$(BUILD_VARIANT
))
70 UBOOT_IMAGE
:=$(if
$(IMAGE
),$(IMAGE
),u-boot-dtb.bin
)
73 define Build
/Configure
74 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
75 $(UBOOT_CONFIG
)_config
79 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
80 CROSS_COMPILE
=$(TARGET_CROSS
) DTC
=$(LINUX_DIR
)/scripts
/dtc
/dtc
83 define Package
/uboot
/install/default
84 $(CP
) $(PKG_BUILD_DIR
)/$(UBOOT_IMAGE
) $(KDIR
)/$(1)-64b-uboot.bin
87 define Package
/uboot
/install/template
88 define Package
/uboot-layerscape-64b-
$(1)/install
89 $(call Package
/uboot
/install/default
,$(2))
93 $(foreach u
,$(UBOOTS
), \
94 $(eval
$(call Package
/uboot
/install/template
,$(u
),$(u
))) \
97 $(foreach u
,$(UBOOTS
), \
98 $(eval
$(call BuildUBootPackage
,$(u
))) \
99 $(eval
$(call BuildPackage
,uboot-layerscape-64b-
$(u
))) \