diff options
author | Isaac David <isacdaavid@isacdaavid.info> | 2017-06-09 15:44:53 -0500 |
---|---|---|
committer | Isaac David <isacdaavid@isacdaavid.info> | 2017-06-09 15:44:53 -0500 |
commit | a63182bc739fa2ef86861a939898717e04cb7153 (patch) | |
tree | 28812dc1e6d2b13c2df520d1728e206bf2c75a1e /libre-testing/uboot4extlinux-chiliboard | |
parent | 25de18693e983c778578ab569df252911b5445e1 (diff) |
libre-testing/uboot4extlinux-*: new versions and configs
also patch old u-boot tarballs to build with gcc7
Diffstat (limited to 'libre-testing/uboot4extlinux-chiliboard')
-rw-r--r-- | libre-testing/uboot4extlinux-chiliboard/0001-kernel-add-support-for-gcc-7.patch (renamed from libre-testing/uboot4extlinux-chiliboard/0001-Add-linux-compiler-gcc5.h-to-fix-builds-with-gcc5.patch) | 41 | ||||
-rw-r--r-- | libre-testing/uboot4extlinux-chiliboard/PKGBUILD | 11 | ||||
-rw-r--r-- | libre-testing/uboot4extlinux-chiliboard/uboot4extlinux-chiliboard.install | 2 |
3 files changed, 14 insertions, 40 deletions
diff --git a/libre-testing/uboot4extlinux-chiliboard/0001-Add-linux-compiler-gcc5.h-to-fix-builds-with-gcc5.patch b/libre-testing/uboot4extlinux-chiliboard/0001-kernel-add-support-for-gcc-7.patch index bdb6699e6..ca59b159a 100644 --- a/libre-testing/uboot4extlinux-chiliboard/0001-Add-linux-compiler-gcc5.h-to-fix-builds-with-gcc5.patch +++ b/libre-testing/uboot4extlinux-chiliboard/0001-kernel-add-support-for-gcc-7.patch @@ -1,30 +1,11 @@ -From 0a3f119b5221e16feb1cbe4036cc16d1dc4c194c Mon Sep 17 00:00:00 2001 -From: Hans de Goede <hdegoede@redhat.com> -Date: Sat, 7 Feb 2015 22:52:40 +0100 -Subject: [PATCH 1/6] Add linux/compiler-gcc5.h to fix builds with gcc5 - -Add linux/compiler-gcc5/h from the kernel sources at: - -commit 5631b8fba640a4ab2f8a954f63a603fa34eda96b -Author: Steven Noonan <steven@uplinklabs.net> -Date: Sat Oct 25 15:09:42 2014 -0700 - - compiler/gcc4+: Remove inaccurate comment about 'asm goto' miscompiles - -Signed-off-by: Hans de Goede <hdegoede@redhat.com> ---- - include/linux/compiler-gcc5.h | 65 +++++++++++++++++++++++++++++++++++++++++++ - 1 file changed, 65 insertions(+) - create mode 100644 include/linux/compiler-gcc5.h - -diff --git a/include/linux/compiler-gcc5.h b/include/linux/compiler-gcc5.h +diff --git a/include/linux/compiler-gcc7.h b/include/linux/compiler-gcc7.h new file mode 100644 -index 0000000..c8c5659 +index 0000000..ba064fa --- /dev/null -+++ b/include/linux/compiler-gcc5.h -@@ -0,0 +1,65 @@ ++++ b/include/linux/compiler-gcc7.h +@@ -0,0 +1,59 @@ +#ifndef __LINUX_COMPILER_H -+#error "Please don't include <linux/compiler-gcc5.h> directly, include <linux/compiler.h> instead." ++#error "Please don't include <linux/compiler-gcc7.h> directly, include <linux/compiler.h> instead." +#endif + +#define __used __attribute__((__used__)) @@ -37,10 +18,6 @@ index 0000000..c8c5659 + like BUG(), printk(), panic() etc. [but let's keep them for now for + older compilers] + -+ Early snapshots of gcc 4.3 don't support this and we can't detect this -+ in the preprocessor, but we can live with this because they're unreleased. -+ Maketime probing would be overkill here. -+ + gcc also has a __attribute__((__hot__)) to move hot functions into + a special section, but I don't see any sense in this right now in + the kernel context */ @@ -57,10 +34,6 @@ index 0000000..c8c5659 + * Mark a position in code as unreachable. This can be used to + * suppress control flow warnings after asm blocks that transfer + * control elsewhere. -+ * -+ * Early snapshots of gcc 4.5 don't support this and we can't detect -+ * this in the preprocessor, but we can live with this because they're -+ * unreleased. Really, we need to have autoconf for the kernel. + */ +#define unreachable() __builtin_unreachable() + @@ -88,6 +61,8 @@ index 0000000..c8c5659 +#define __HAVE_BUILTIN_BSWAP64__ +#define __HAVE_BUILTIN_BSWAP16__ +#endif /* CONFIG_ARCH_USE_BUILTIN_BSWAP */ ++ ++#define KASAN_ABI_VERSION 4 -- -2.5.0 +2.1.4 diff --git a/libre-testing/uboot4extlinux-chiliboard/PKGBUILD b/libre-testing/uboot4extlinux-chiliboard/PKGBUILD index c05ed95eb..5e6de9222 100644 --- a/libre-testing/uboot4extlinux-chiliboard/PKGBUILD +++ b/libre-testing/uboot4extlinux-chiliboard/PKGBUILD @@ -1,7 +1,6 @@ # U-Boot: ChiliBoard -# Maintainer: André Silva <emulatorman@parabola.nu> - -buildarch=4 +# Maintainer: Isaac David <isacdaavid@at@isacdaavid@dot@info> +# Contributor: André Silva <emulatorman@parabola.nu> pkgname=uboot4extlinux-chiliboard pkgver=2014.07 @@ -15,7 +14,7 @@ license=('GPL') backup=(boot/extlinux/extlinux.conf) install=${pkgname}.install source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver}.tar.bz2" - '0001-Add-linux-compiler-gcc5.h-to-fix-builds-with-gcc5.patch' + '0001-kernel-add-support-for-gcc-7.patch' '0002-ARM-asm-io.h-use-static-inline.patch' '0003-common-main.c-make-show_boot_progress-__weak.patch' '0004-common-board_f-cosmetic-use-__weak-for-leds.patch' @@ -24,7 +23,7 @@ source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver}.tar.bz2" 'extlinux.conf' 'uEnv.txt') sha256sums=('b4f83b8db325c21671a997198ec3a373e2e00dde2fcf17be9b9afd7cfd727f56' - '993ec4c20d8e25e8c882282b82b6f9cb27111855e5f5c7fb6eda8218b470278e' + '9e80aa27cccdb07b03d56a970f247c91d586d0b936868c076c20acc2e68a3968' '91b2711f36fbe1bae5d02b3a1eec81383ffd50a4b71426b82920cfd70af40237' '0bb7ddee0b33ba7ca830f09b6aaacc945c7a662749a19b128eb1cab71f5b100a' '2795b55f0ef03aef6c05fd074ab9839d0f89fdc5a3c99dd849eb74cd09e59045' @@ -35,7 +34,7 @@ sha256sums=('b4f83b8db325c21671a997198ec3a373e2e00dde2fcf17be9b9afd7cfd727f56' prepare() { cd u-boot-${pkgver} - patch -Np1 -i ../0001-Add-linux-compiler-gcc5.h-to-fix-builds-with-gcc5.patch + patch -Np1 -i ../0001-kernel-add-support-for-gcc-7.patch patch -Np1 -i ../0002-ARM-asm-io.h-use-static-inline.patch patch -Np1 -i ../0003-common-main.c-make-show_boot_progress-__weak.patch patch -Np1 -i ../0004-common-board_f-cosmetic-use-__weak-for-leds.patch diff --git a/libre-testing/uboot4extlinux-chiliboard/uboot4extlinux-chiliboard.install b/libre-testing/uboot4extlinux-chiliboard/uboot4extlinux-chiliboard.install index 4467c694e..93306e01e 100644 --- a/libre-testing/uboot4extlinux-chiliboard/uboot4extlinux-chiliboard.install +++ b/libre-testing/uboot4extlinux-chiliboard/uboot4extlinux-chiliboard.install @@ -4,7 +4,7 @@ flash_instructions() { } extlinux_warning() { - echo "==> WARNING: U-Boot uses Extlinux support to boot up. For setting it up, edit /boot/extlinux/extlinux.conf" + echo "==> WARNING: Remember to set up your kernels in /boot/extlinux/extlinux.conf" } flash_uboot() { |