summaryrefslogtreecommitdiff
path: root/libre/uboot-mx6_cubox-i/PKGBUILD
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-03-02 02:22:04 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-03-02 02:22:04 -0300
commitf303ce805abe78bcbab81704bc0d4ad4d0fb8d61 (patch)
treeae5fa1f9264cd94456e9c272633ead6a8eeb9e0f /libre/uboot-mx6_cubox-i/PKGBUILD
parent7545468778b501c3a5a805dc33bc8ae20019020e (diff)
downloadabslibre-f303ce805abe78bcbab81704bc0d4ad4d0fb8d61.tar.gz
abslibre-f303ce805abe78bcbab81704bc0d4ad4d0fb8d61.tar.bz2
abslibre-f303ce805abe78bcbab81704bc0d4ad4d0fb8d61.zip
uboot-mx6_cubox-i: add new package to [libre]
Diffstat (limited to 'libre/uboot-mx6_cubox-i/PKGBUILD')
-rw-r--r--libre/uboot-mx6_cubox-i/PKGBUILD69
1 files changed, 69 insertions, 0 deletions
diff --git a/libre/uboot-mx6_cubox-i/PKGBUILD b/libre/uboot-mx6_cubox-i/PKGBUILD
new file mode 100644
index 000000000..d8355892a
--- /dev/null
+++ b/libre/uboot-mx6_cubox-i/PKGBUILD
@@ -0,0 +1,69 @@
+# Maintainer: André Silva <emulatorman@parabola.nu>
+
+buildarch=4
+
+pkgbase=uboot-mx6_cubox-i
+pkgname=('uboot-mx6_cubox-i')
+pkgver=2013.10
+pkgrel=1
+arch=('armv7h')
+url="http://git.denx.de/u-boot.git/"
+license=('GPL')
+depends=('linux-libre')
+replaces=('uboot-cubox-i' 'uboot-cubox-i-linux-libre')
+conflicts=('uboot4extlinux-mx6_cubox-i' 'uboot4grub-mx6_cubox-i')
+option=('!strip')
+_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'
+ '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'
+ 'parabola-modifications.patch')
+md5sums=('8dc15f4cf0b244a8d9598a2ce93056a4'
+ '721a46867e189d8dedc6b6f86a536a34'
+ 'b8cd082b76224d157d55404d0bc87831'
+ 'cf823fe2da67b8db5b9de9352a815f91'
+ '6f3d537701904f0244e6d857e2545c5d'
+ '8ed91e4257bfb7e0971fa988342537a3'
+ '629d34349b5652e2d4274ad89e1c4481'
+ '8087672256020417438b12ec4946e1cf'
+ '19178e6d85b6b8278fa70eee5db18f83')
+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 ../parabola-modifications.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"
+ install=${pkgbase}.install
+
+ cd u-boot-imx6-${_commit}
+
+ mkdir -p "${pkgdir}"/boot
+ cp u-boot.img "${pkgdir}"/boot
+ cp SPL "${pkgdir}"/boot
+}