PKGBUILDs/alarm/uboot-cubox-i/PKGBUILD

74 lines
2.1 KiB
Bash
Raw Normal View History

2014-03-04 13:31:30 +00:00
# Maintainer: Dave Higham <pepedog@archlinuxarm.org>
2015-11-05 19:23:16 +00:00
# Maintainer: Oleg Rakhmanov <oleg@archlinuxarm.org>
2014-03-04 13:31:30 +00:00
buildarch=4
pkgbase=uboot-cubox-i
pkgname=('uboot-cubox-i')
pkgver=2013.10
2015-11-05 19:23:16 +00:00
pkgrel=5
2014-03-04 13:31:30 +00:00
arch=('armv7h')
url="http://git.denx.de/u-boot.git/"
license=('GPL')
makedepends=('git')
2014-03-04 13:31:30 +00:00
option=('!strip')
2015-11-05 19:23:16 +00:00
_commit=408544d61f230060f18ffe2e06565deadbcf3451
source=("uboot-${_commit}.tar.gz::https://github.com/SolidRun/u-boot-imx6/archive/${_commit}.tar.gz"
'kernel-add-support-for-gcc-5.patch'
'kernel-add-support-for-gcc-6.patch'
'arm_board_use_weak.patch'
'leds_missing_include.patch'
'remove_unnecessary_inits.patch'
'u-boot-002-gcc5-use_gcc_inline_version_instead_c99.patch'
'no-unalligned-access.patch'
'common-main.c-make-show_boot_progress-__weak.patch'
2015-11-05 19:23:16 +00:00
'arch-linux-arm-modifications.patch')
md5sums=('8dc15f4cf0b244a8d9598a2ce93056a4'
'721a46867e189d8dedc6b6f86a536a34'
'840a69592300bf7cbc3ad317e8100114'
'b8cd082b76224d157d55404d0bc87831'
'cf823fe2da67b8db5b9de9352a815f91'
'6f3d537701904f0244e6d857e2545c5d'
'8ed91e4257bfb7e0971fa988342537a3'
'629d34349b5652e2d4274ad89e1c4481'
'8087672256020417438b12ec4946e1cf'
2015-11-05 19:23:16 +00:00
'5352b85da1ee65eb4565d375d72b253c')
2015-07-14 20:31:09 +00:00
prepare() {
cd u-boot-imx6-${_commit}
2015-07-14 20:31:09 +00:00
patch -Np1 -i ../kernel-add-support-for-gcc-5.patch
patch -Np1 -i ../kernel-add-support-for-gcc-6.patch
patch -Np1 -i ../arm_board_use_weak.patch
patch -Np1 -i ../leds_missing_include.patch
patch -Np1 -i ../remove_unnecessary_inits.patch
patch -Np1 -i ../u-boot-002-gcc5-use_gcc_inline_version_instead_c99.patch
patch -Np1 -i ../no-unalligned-access.patch
patch -Np1 -i ../common-main.c-make-show_boot_progress-__weak.patch
2015-11-05 19:23:16 +00:00
patch -Np1 -i ../arch-linux-arm-modifications.patch
2015-07-14 20:31:09 +00:00
}
2014-03-04 13:31:30 +00:00
build() {
cd u-boot-imx6-${_commit}
2015-07-14 20:31:09 +00:00
2014-03-04 13:31:30 +00:00
unset CFLAGS
unset CXXFLAGS
2015-07-14 20:31:09 +00:00
unset LDFLAGS
make distclean
make mx6_cubox-i_config
make
2014-03-04 13:31:30 +00:00
}
package() {
pkgdesc="U-Boot for all Cubox-i variants"
install=${pkgbase}.install
cd u-boot-imx6-${_commit}
2015-07-14 20:31:09 +00:00
2014-03-04 13:31:30 +00:00
mkdir -p "${pkgdir}"/boot
2015-07-14 20:31:09 +00:00
cp u-boot.img "${pkgdir}"/boot
cp SPL "${pkgdir}"/boot
2014-03-04 13:31:30 +00:00
}