mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
60 lines
1.3 KiB
Bash
60 lines
1.3 KiB
Bash
# 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
|
|
arch=('armv7h')
|
|
url="https://github.com/UDOOboard/U-Boot_Unico-2013"
|
|
license=('GPL')
|
|
makedepends=('git')
|
|
option=('!strip')
|
|
source=("uboot::git+https://github.com/UDOOboard/U-Boot_Unico-2013.git"
|
|
'alarm.patch')
|
|
md5sums=('SKIP'
|
|
'330f9fa3963708dc8e70a86415d00d73')
|
|
|
|
prepare() {
|
|
cd uboot
|
|
patch -p1 -i "${srcdir}"/alarm.patch
|
|
rm -rf .git
|
|
}
|
|
|
|
build() {
|
|
cd uboot
|
|
|
|
unset CFLAGS CXXFLAGS LDFLAGS
|
|
|
|
# Dual
|
|
make distclean
|
|
make udoo_dl_config
|
|
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
|
|
|
|
# Quad
|
|
make distclean
|
|
make udoo_quad_config
|
|
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
|
|
}
|
|
|
|
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
|
|
}
|
|
|
|
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
|
|
}
|