bananapi-uboot: fix xlint; fix + enable armv7l-musl
This commit is contained in:
parent
835f76bcbb
commit
737ab6c460
2 changed files with 48 additions and 6 deletions
42
srcpkgs/bananapi-uboot/patches/musl.patch
Normal file
42
srcpkgs/bananapi-uboot/patches/musl.patch
Normal file
|
@ -0,0 +1,42 @@
|
|||
--- include/image.h 2014-08-19 08:42:46.000000000 +0200
|
||||
+++ include/image.h 2020-09-15 10:43:48.410147914 +0200
|
||||
@@ -19,6 +19,11 @@
|
||||
#include "compiler.h"
|
||||
#include <asm/byteorder.h>
|
||||
|
||||
+#if !defined(__GLIBC__)
|
||||
+typedef unsigned long int ulong;
|
||||
+typedef unsigned long int uintptr_t;
|
||||
+#endif
|
||||
+
|
||||
/* Define this to avoid #ifdefs later on */
|
||||
struct lmb;
|
||||
|
||||
--- tools/mkimage.h 2014-08-19 08:42:46.000000000 +0200
|
||||
+++ tools/mkimage.h 2020-09-15 10:46:44.221140904 +0200
|
||||
@@ -22,6 +22,11 @@
|
||||
#include "fdt_host.h"
|
||||
#include "imagetool.h"
|
||||
|
||||
+#if !defined(__GLIBC__)
|
||||
+typedef unsigned long int ulong;
|
||||
+typedef unsigned long int uintptr_t;
|
||||
+#endif
|
||||
+
|
||||
#undef MKIMAGE_DEBUG
|
||||
|
||||
#ifdef MKIMAGE_DEBUG
|
||||
--- tools/proftool.c 2014-08-19 08:42:46.000000000 +0200
|
||||
+++ tools/proftool.c 2020-09-15 10:48:28.212136757 +0200
|
||||
@@ -20,6 +20,11 @@
|
||||
#include <compiler.h>
|
||||
#include <trace.h>
|
||||
|
||||
+#if !defined(__GLIBC__)
|
||||
+typedef unsigned long int ulong;
|
||||
+typedef unsigned long int uintptr_t;
|
||||
+#endif
|
||||
+
|
||||
#define MAX_LINE_LEN 500
|
||||
|
||||
enum {
|
|
@ -1,18 +1,18 @@
|
|||
# Template file for 'odroid-u2-uboot'
|
||||
# Template file for 'bananapi-uboot'
|
||||
pkgname=bananapi-uboot
|
||||
version=15.04
|
||||
revision=1
|
||||
revision=2
|
||||
wrksrc="u-boot-bananapi-bananian-v${version}"
|
||||
hostmakedepends="sunxi-tools uboot-mkimage"
|
||||
short_desc="Banana Pi uboot module"
|
||||
maintainer="necrophcodr <necrophcodr@necrophcodr.me>"
|
||||
license="GPL-2"
|
||||
license="GPL-2.0-only"
|
||||
homepage="https://github.com/hardkernel/u-boot"
|
||||
distfiles="https://github.com/Bananian/u-boot-bananapi/archive/bananian-v${version}.tar.gz"
|
||||
checksum=8be162b0b8e85d3fbc2e14af3b71c4a204f4a9c63f6f13275f86629624c1d6a6
|
||||
wrksrc="u-boot-bananapi-bananian-v${version}"
|
||||
|
||||
conf_files="/boot/uEnv.txt"
|
||||
archs="armv7l"
|
||||
archs="armv7l*"
|
||||
|
||||
do_configure() {
|
||||
# Create a dummy header file for gcc10 since include/linux/compiler-gcc.h
|
||||
|
@ -38,7 +38,7 @@ do_build() {
|
|||
}
|
||||
|
||||
do_install() {
|
||||
# Certain files in `files` directory *NEED* to be installed.
|
||||
# Certain files in 'files' directory *NEED* to be installed.
|
||||
# uEnv.txt: The boot configuration file, in pure text for readability.
|
||||
# script.fex: Pure text board configuration, compiled to script.bin.
|
||||
vmkdir boot
|
||||
|
|
Loading…
Reference in a new issue