PKGBUILDs/alarm/uboot-odroid-c1/PKGBUILD

50 lines
1.2 KiB
Bash
Raw Normal View History

2014-12-31 01:05:05 +00:00
# U-Boot: ODROID-C1
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
buildarch=4
pkgname=uboot-odroid-c1
pkgver=2011.03
2015-06-12 23:23:26 +00:00
pkgrel=13
2014-12-31 01:05:05 +00:00
pkgdesc="U-Boot for ODROID-C1"
arch=('armv7h')
url="https://github.com/hardkernel/u-boot"
license=('GPL')
2015-01-03 01:11:40 +00:00
install=$pkgname.install
2014-12-31 01:05:05 +00:00
makedepends=('git' 'bc')
backup=('boot/boot.ini')
2015-04-20 03:02:59 +00:00
_commit=c878e20536aa4924aca6b29e641cf5b9864a9f38
2014-12-31 01:05:05 +00:00
source=("https://github.com/hardkernel/u-boot/archive/${_commit}.tar.gz"
'boot.ini'
2015-01-10 19:38:24 +00:00
'0001-remove-cross-compiling.patch'
2015-01-13 02:58:21 +00:00
'0002-sd_fusing-tweaks.patch')
2015-04-20 03:02:59 +00:00
md5sums=('1e90cad486793d08f57502d311d0f9a6'
2015-06-12 23:23:26 +00:00
'40091a757b21e80cbc7b87157cd5597b'
2015-01-13 02:58:21 +00:00
'fb9e00cfdc765b60c61b42060bde6fc2'
'beeec86a4903a3ce6d1e7956ad9250c4')
2014-12-31 01:05:05 +00:00
prepare() {
cd u-boot-${_commit}
2015-01-10 19:38:24 +00:00
git apply ../0001-remove-cross-compiling.patch
git apply ../0002-sd_fusing-tweaks.patch
2014-12-31 01:05:05 +00:00
}
build() {
cd u-boot-${_commit}
unset CFLAGS CXXFLAGS CPPFLAGS LDFLAGS
make distclean
make odroidc_config
make EXTRAVERSION=-${pkgrel}
}
package() {
cd u-boot-${_commit}/sd_fuse
mkdir -p "${pkgdir}"/boot
cp bl1.bin.hardkernel sd_fusing.sh u-boot.bin "${pkgdir}"/boot
cp "${srcdir}"/boot.ini "${pkgdir}"/boot
}