2014-08-23 05:59:48 +00:00
|
|
|
# U-Boot: ODROID-X/X2/U2/U3
|
|
|
|
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
|
|
|
|
buildarch=4
|
|
|
|
|
2015-02-07 04:36:44 +00:00
|
|
|
pkgbase=uboot-odroid
|
|
|
|
pkgname=('uboot-odroid' 'uboot-odroid-x')
|
2016-09-24 22:01:15 +00:00
|
|
|
pkgver=2016.09
|
2015-06-08 01:16:40 +00:00
|
|
|
pkgrel=1
|
2014-08-23 05:59:48 +00:00
|
|
|
arch=('armv7h')
|
2015-02-07 04:36:44 +00:00
|
|
|
url='http://www.denx.de/wiki/U-Boot/WebHome'
|
2014-08-23 05:59:48 +00:00
|
|
|
license=('GPL')
|
|
|
|
install=$pkgname.install
|
2015-01-03 22:32:24 +00:00
|
|
|
backup=('boot/uEnv.txt')
|
|
|
|
makedepends=('bc' 'dtc' 'git')
|
2014-08-23 05:59:48 +00:00
|
|
|
_commit=dd9a970aa4accf5d266d334c0f319c674e933027
|
|
|
|
source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver}.tar.bz2"
|
|
|
|
"https://github.com/hardkernel/u-boot/raw/${_commit}/sd_fuse/bl1.HardKernel"
|
|
|
|
"https://github.com/hardkernel/u-boot/raw/${_commit}/sd_fuse/bl2.HardKernel"
|
|
|
|
"https://github.com/hardkernel/u-boot/raw/${_commit}/sd_fuse/tzsw.HardKernel"
|
|
|
|
"sd_fusing.sh"
|
2015-01-03 22:32:24 +00:00
|
|
|
'0001-arch-linux-arm-modifications.patch'
|
2015-02-07 04:36:44 +00:00
|
|
|
'0002-odroid-x-support.patch'
|
2014-08-23 05:59:48 +00:00
|
|
|
'uEnv.txt')
|
2016-09-24 22:01:15 +00:00
|
|
|
md5sums=('2e69dda70eb28f8042d2f9fbeb1feaa1'
|
2014-08-23 05:59:48 +00:00
|
|
|
'3ab6d3cc2061bc2590d60320254017c6'
|
|
|
|
'841502de02bd42f2898e36c89c260b0f'
|
|
|
|
'c38faafa02a6a1ae834457f378c82113'
|
2014-08-23 14:44:10 +00:00
|
|
|
'17909ae93a0ae7b4c155234040105035'
|
2016-07-19 00:43:40 +00:00
|
|
|
'afe3b7a5b224e257b2ce7f5af03daa8d'
|
|
|
|
'f4f8c8b6217e6646b9659de642264a3f'
|
2015-01-21 03:57:41 +00:00
|
|
|
'fb5c9ea3108afa298087549f0453b00f')
|
2014-08-23 05:59:48 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd u-boot-${pkgver}
|
|
|
|
|
2015-01-03 22:32:24 +00:00
|
|
|
git apply ../0001-arch-linux-arm-modifications.patch
|
2014-08-23 05:59:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd u-boot-${pkgver}
|
|
|
|
|
|
|
|
unset CFLAGS
|
|
|
|
unset CXXFLAGS
|
2015-01-03 22:32:24 +00:00
|
|
|
unset CPPFLAGS
|
2014-08-23 05:59:48 +00:00
|
|
|
|
2015-02-07 04:36:44 +00:00
|
|
|
# build for X2/U2/U3
|
2014-08-23 05:59:48 +00:00
|
|
|
make distclean
|
|
|
|
make odroid_config
|
2014-08-29 22:36:16 +00:00
|
|
|
make EXTRAVERSION=-${pkgrel}
|
2015-02-07 04:36:44 +00:00
|
|
|
mv u-boot-dtb.bin ../u-boot-dtb.bin
|
|
|
|
|
|
|
|
# patch and build for X
|
|
|
|
git apply ../0002-odroid-x-support.patch
|
|
|
|
make distclean
|
|
|
|
make odroid_config
|
|
|
|
make EXTRAVERSION=-${pkgrel}
|
2014-08-23 05:59:48 +00:00
|
|
|
}
|
|
|
|
|
2015-02-07 04:36:44 +00:00
|
|
|
package_uboot-odroid() {
|
|
|
|
pkgdesc="U-Boot for ODROID-X2/U2/U3"
|
|
|
|
|
|
|
|
cd u-boot-${pkgver}
|
|
|
|
mkdir -p ${pkgdir}/boot
|
|
|
|
cp ../u-boot-dtb.bin ${pkgdir}/boot/u-boot.bin
|
|
|
|
cp ../uEnv.txt ${pkgdir}/boot
|
|
|
|
cp ../{{bl1,bl2,tzsw}.HardKernel,sd_fusing.sh} ${pkgdir}/boot
|
|
|
|
}
|
|
|
|
|
|
|
|
package_uboot-odroid-x() {
|
|
|
|
pkgdesc="U-Boot for ODROID-X"
|
|
|
|
|
2014-08-23 05:59:48 +00:00
|
|
|
cd u-boot-${pkgver}
|
|
|
|
mkdir -p ${pkgdir}/boot
|
2015-04-04 22:01:39 +00:00
|
|
|
cp u-boot-dtb.bin ${pkgdir}/boot/u-boot.bin
|
2014-08-23 05:59:48 +00:00
|
|
|
cp ../uEnv.txt ${pkgdir}/boot
|
|
|
|
cp ../{{bl1,bl2,tzsw}.HardKernel,sd_fusing.sh} ${pkgdir}/boot
|
|
|
|
}
|