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-01-10 20:08:33 +00:00
|
|
|
pkgrel=5
|
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-01-10 19:38:24 +00:00
|
|
|
_commit=e7d4447d551ccba5d60be8b11697aa0ab49086c4
|
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'
|
|
|
|
'0002-sd_fusing-tweaks.patch'
|
|
|
|
'0003-environment-fixes.patch')
|
|
|
|
md5sums=('0fc20cde97358ab04b22b946d563e970'
|
|
|
|
'a9e2adb320a058236b1317c7f873c07c'
|
|
|
|
'112dd04a3e5e383ad8bdcdfe81423a05'
|
|
|
|
'd395e29e94e23151cb921ceb16ec3b88'
|
2015-01-10 20:08:33 +00:00
|
|
|
'1b3dded4a457d7d7e1c03035d1f24d51')
|
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
|
|
|
|
git apply ../0003-environment-fixes.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
|
|
|
|
}
|