2016-10-28 16:14:32 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2016 Jiang Yutang <jiangyutang1978@gmail.com>
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=uboot-layerscape-32bit
|
|
|
|
PKG_VERSION:=v1.0
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE_PROTO:=git
|
2016-12-21 21:25:41 +00:00
|
|
|
PKG_MIRROR_HASH:=b62f4a55882ffb6b57da24ad9eaa98237141941d273e06a2244220a3e6b82ce7
|
2016-10-28 16:14:32 +00:00
|
|
|
PKG_SOURCE_URL:=https://github.com/fsl-jyt/uboot-ls-32b.git
|
2016-12-07 16:07:42 +00:00
|
|
|
PKG_SOURCE_VERSION:=763de09cc7265e3147e2df2e15f91c73231907f4
|
2016-10-28 16:14:32 +00:00
|
|
|
|
|
|
|
PKG_LICENSE:=GPL-2.0 GPL-2.0+
|
|
|
|
PKG_LICENSE_FILES:=Licenses/README
|
|
|
|
|
2017-01-23 10:56:42 +00:00
|
|
|
PKG_MAINTAINER:=Jiang Yutang <jiangyutang1978@gmail.com>
|
2016-10-28 16:18:23 +00:00
|
|
|
|
2017-01-23 10:56:42 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
include $(INCLUDE_DIR)/kernel.mk
|
2016-10-28 16:14:32 +00:00
|
|
|
|
2017-01-23 10:56:42 +00:00
|
|
|
define Package/uboot-layerscape-32b
|
|
|
|
SECTION:=boot
|
|
|
|
CATEGORY:=Boot Loaders
|
|
|
|
DEPENDS:=@TARGET_layerscape_32b
|
|
|
|
TITLE:=32-bit U-Boot for Layerscape boards
|
|
|
|
DEFAULT:=y
|
|
|
|
HIDDEN:=1
|
2016-10-28 16:14:32 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
2017-01-23 10:56:42 +00:00
|
|
|
|
2016-10-28 16:14:32 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2017-01-23 10:56:42 +00:00
|
|
|
define Build/InstallDev
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/ls1043ardb-uboot.bin $(KERNEL_BUILD_DIR)/ls1043ardb-32b-uboot.bin
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/ls1046ardb-uboot.bin $(KERNEL_BUILD_DIR)/ls1046ardb-32b-uboot.bin
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/ls1012ardb-uboot.bin.swap $(KERNEL_BUILD_DIR)/ls1012ardb-32b-uboot.bin
|
2016-10-28 16:14:32 +00:00
|
|
|
endef
|
|
|
|
|
2017-01-23 10:56:42 +00:00
|
|
|
$(eval $(call BuildPackage,uboot-layerscape-32b))
|