PKGBUILDs/alarm/uboot-udoo/PKGBUILD

61 lines
1.3 KiB
Bash
Raw Normal View History

2013-11-23 03:57:53 +00:00
# U-Boot: UDOO
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
buildarch=4
pkgbase=uboot-udoo
pkgname=('uboot-udoo-dual' 'uboot-udoo-quad')
pkgver=2013.10
pkgrel=1
2013-11-23 03:57:53 +00:00
arch=('armv7h')
url="https://github.com/UDOOboard/U-Boot_Unico-2013"
2013-11-23 03:57:53 +00:00
license=('GPL')
makedepends=('git')
option=('!strip')
source=("uboot::git+https://github.com/UDOOboard/U-Boot_Unico-2013.git"
2013-11-23 03:57:53 +00:00
'alarm.patch')
md5sums=('SKIP'
'330f9fa3963708dc8e70a86415d00d73')
2013-11-23 03:57:53 +00:00
prepare() {
cd uboot
patch -p1 -i "${srcdir}"/alarm.patch
rm -rf .git
}
build() {
cd uboot
unset CFLAGS CXXFLAGS LDFLAGS
2013-11-23 03:57:53 +00:00
# Dual
make distclean
make udoo_dl_config
2013-11-23 03:57:53 +00:00
make DDR_SIZE=2 DDR_TYPE=1 BOARD_TYPE=UDOO CPU_TYPE=DUAL_LITE OS_TYPE=LINUX ENV_DEVICE=ENV_MMC
mv u-boot.imx u-boot-dual.imx
2013-11-23 03:57:53 +00:00
# Quad
make distclean
make udoo_quad_config
2013-11-23 03:57:53 +00:00
make DDR_SIZE=2 DDR_TYPE=1 BOARD_TYPE=UDOO CPU_TYPE=QUAD OS_TYPE=LINUX ENV_DEVICE=ENV_MMC
mv u-boot.imx u-boot-quad.imx
2013-11-23 03:57:53 +00:00
}
package_uboot-udoo-dual() {
pkgdesc="U-Boot for UDOO Dual"
conflicts=('uboot-udoo-quad')
install=${pkgbase}.install
mkdir -p "${pkgdir}"/boot
cp uboot/u-boot-dual.imx "${pkgdir}"/boot/u-boot.imx
2013-11-23 03:57:53 +00:00
}
package_uboot-udoo-quad() {
pkgdesc="U-Boot for UDOO Quad"
conflicts=('uboot-udoo-dual')
install=${pkgbase}.install
mkdir -p "${pkgdir}"/boot
cp uboot/u-boot-quad.imx "${pkgdir}"/boot/u-boot.imx
2013-11-23 03:57:53 +00:00
}