summaryrefslogtreecommitdiff
path: root/libre-testing/uboot4extlinux-wandboard/PKGBUILD
blob: a3431b1a06acac10d0afba3d31a29073229907e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# U-Boot: Wandboard
# Maintainer: André Silva <emulatorman@parabola.nu>

buildarch=4

pkgname=uboot4extlinux-wandboard
pkgver=2015.10
pkgrel=2
pkgdesc="U-Boot with Extlinux support for Wandboard"
arch=('armv7h')
url="http://git.denx.de/u-boot.git/"
license=('GPL')
makedepends=('bc')
conflicts=('uboot-wandboard' 'uboot4grub-wandboard')
install=${pkgname}.install
source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver}.tar.bz2"
        '0001-parabola-arm-modifications.patch'
        'extlinux.conf')
md5sums=('7c203b0fc3390a122d8e8b75f147eac5'
         'b456e16c44508868ce6d265da625d768'
         '3367c0142a98a62fed243be74f5c465d')

prepare() {
  cd u-boot-${pkgver}
  patch -Np1 -i ../0001-parabola-arm-modifications.patch
}

build() {
  cd u-boot-${pkgver}
  
  unset LDFLAGS
  
  make distclean
  make wandboard_defconfig
  make
}

package() {
  cd u-boot-${pkgver}

  mkdir -p "${pkgdir}"/boot/extlinux
  cp SPL u-boot.img "${pkgdir}"/boot
  cp "${srcdir}"/extlinux.conf "${pkgdir}"/boot/extlinux
}