summaryrefslogtreecommitdiff
path: root/libre/uboot-cubox-i-linux-libre/PKGBUILD
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-10-05 02:36:16 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-10-05 02:36:16 -0300
commit712d4814bd655fb3ed8b9af602158cc6923acae7 (patch)
treeb63eec3ed93130964a8f84558347bbe0fe95202b /libre/uboot-cubox-i-linux-libre/PKGBUILD
parent765e537cf6fa34b3cd9e099623e2552e21501877 (diff)
downloadabslibre-712d4814bd655fb3ed8b9af602158cc6923acae7.tar.gz
abslibre-712d4814bd655fb3ed8b9af602158cc6923acae7.tar.bz2
abslibre-712d4814bd655fb3ed8b9af602158cc6923acae7.zip
uboot-cubox-i-linux-libre: add new package to [libre]
Diffstat (limited to 'libre/uboot-cubox-i-linux-libre/PKGBUILD')
-rw-r--r--libre/uboot-cubox-i-linux-libre/PKGBUILD71
1 files changed, 71 insertions, 0 deletions
diff --git a/libre/uboot-cubox-i-linux-libre/PKGBUILD b/libre/uboot-cubox-i-linux-libre/PKGBUILD
new file mode 100644
index 000000000..b37bcfcc7
--- /dev/null
+++ b/libre/uboot-cubox-i-linux-libre/PKGBUILD
@@ -0,0 +1,71 @@
+# U-Boot: UDOO
+# Maintainer: Dave Higham <pepedog@archlinuxarm.org>
+# Maintainer: André Silva <emulatorman@parabola.nu>
+
+buildarch=4
+
+_pkgname=linux-libre
+pkgname=("uboot-cubox-i-${_pkgname}")
+pkgver=2013.10
+pkgrel=4
+arch=('armv7h')
+url="http://git.denx.de/u-boot.git/"
+license=('GPL')
+makedepends=('bc')
+depends=('linux-libre')
+replaces=('uboot-cubox-i')
+option=('!strip')
+_commit=e509dd30e97bf2cbce21502e4462d9d7c1d85daa
+source=("uboot-${_commit}.tar.gz::https://github.com/SolidRun/u-boot-imx6/archive/${_commit}.tar.gz"
+ 'kernel-add-support-for-gcc-5.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'
+ 'check_dtbs_subdir_fix.patch')
+md5sums=('3417d53a913949fd80c052fc8662c2a4'
+ '721a46867e189d8dedc6b6f86a536a34'
+ 'b8cd082b76224d157d55404d0bc87831'
+ 'cf823fe2da67b8db5b9de9352a815f91'
+ '6f3d537701904f0244e6d857e2545c5d'
+ '8ed91e4257bfb7e0971fa988342537a3'
+ '629d34349b5652e2d4274ad89e1c4481'
+ '8087672256020417438b12ec4946e1cf'
+ '5d5ea5bd73957bbf6ec18e1ae65a5e9c')
+prepare() {
+ cd u-boot-imx6-${_commit}
+
+ patch -Np1 -i ../kernel-add-support-for-gcc-5.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
+ patch -Np1 -i ../check_dtbs_subdir_fix.patch
+}
+
+build() {
+ cd u-boot-imx6-${_commit}
+
+ unset CFLAGS
+ unset CXXFLAGS
+ unset LDFLAGS
+
+ make distclean
+ make mx6_cubox-i_config
+ make
+}
+
+package() {
+ pkgdesc="U-Boot for all Cubox-i variants (built for the linux-libre kernel package)"
+ install=${pkgname}.install
+
+ cd u-boot-imx6-${_commit}
+
+ mkdir -p "${pkgdir}/boot/${pkgname}"
+ cp u-boot.img "${pkgdir}/boot/${pkgname}"
+ cp SPL "${pkgdir}/boot/${pkgname}"
+}