initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
From 3452721eafae90749f4af63264c412f398460b15 Mon Sep 17 00:00:00 2001
|
||||
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Date: Sun, 20 Jan 2019 21:07:11 +0100
|
||||
Subject: [PATCH] Make.defaults: don't override ARCH when cross-compiling
|
||||
|
||||
Don't override the user-provided ARCH when cross-compiling otherwise
|
||||
ARCH won't be correct for armv5, aarch64 and x86_64
|
||||
|
||||
Fixes:
|
||||
- http://autobuild.buildroot.org/results/2dfc0e10da25a8382a43557420d7dc3444c02dbb
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
---
|
||||
Make.defaults | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/Make.defaults b/Make.defaults
|
||||
index ba743f1..a0e5632 100755
|
||||
--- a/Make.defaults
|
||||
+++ b/Make.defaults
|
||||
@@ -67,7 +67,7 @@ ARCH ?= $(shell $(HOSTCC) -dumpmachine | cut -f1 -d- | sed -e s,i[345678
|
||||
|
||||
# Get ARCH from the compiler if cross compiling
|
||||
ifneq ($(CROSS_COMPILE),)
|
||||
- override ARCH := $(shell $(CC) -dumpmachine | cut -f1 -d-| sed -e s,i[3456789]86,ia32, -e 's,armv7.*,arm,' )
|
||||
+ ARCH := $(shell $(CC) -dumpmachine | cut -f1 -d-| sed -e s,i[3456789]86,ia32, -e 's,armv7.*,arm,' )
|
||||
endif
|
||||
|
||||
# FreeBSD (and possibly others) reports amd64 instead of x86_64
|
||||
--
|
||||
2.14.1
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
From 1f7b2e5bd6603b30202a66b6317a41e2be85742b Mon Sep 17 00:00:00 2001
|
||||
From: Esben Haabendal <esben@haabendal.dk>
|
||||
Date: Tue, 26 Mar 2019 13:37:02 +0100
|
||||
Subject: [PATCH] Revert "efilink: fix build with gcc 4.8"
|
||||
|
||||
This reverts commit 6335e5c697c57d8b5854b8202de3733bcb151ca6, as it breaks
|
||||
gcc builds with '-nostdinc' flag.
|
||||
|
||||
The fix in 1a53d8f88a452847b25f9689f9a08dbcf82c86e4
|
||||
(Fix for problem with undeclared intptr_t type), which is also merged
|
||||
fixes the same problem, without causing breakage.
|
||||
|
||||
Signed-off-by: Esben Haabendal <esben@haabendal.dk>
|
||||
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
|
||||
[Upstream status:
|
||||
https://sourceforge.net/p/gnu-efi/code/merge-requests/6/]
|
||||
---
|
||||
inc/efilink.h | 4 ----
|
||||
1 file changed, 4 deletions(-)
|
||||
|
||||
diff --git a/inc/efilink.h b/inc/efilink.h
|
||||
index b69a6fd..cc5aa2d 100644
|
||||
--- a/inc/efilink.h
|
||||
+++ b/inc/efilink.h
|
||||
@@ -1,10 +1,6 @@
|
||||
#ifndef _EFI_LINK_H
|
||||
#define _EFI_LINK_H
|
||||
|
||||
-#if defined(__GNUC__)
|
||||
-#include <stdint.h>
|
||||
-#endif
|
||||
-
|
||||
/*++
|
||||
|
||||
Copyright (c) 1998 Intel Corporation
|
||||
--
|
||||
2.20.1
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
config BR2_PACKAGE_GNU_EFI_ARCH_SUPPORTS
|
||||
bool
|
||||
default y if BR2_ARM_CPU_HAS_ARM
|
||||
default y if BR2_aarch64
|
||||
default y if BR2_aarch64_be
|
||||
default y if BR2_i386
|
||||
default y if BR2_x86_64
|
||||
|
||||
config BR2_PACKAGE_GNU_EFI
|
||||
bool "gnu-efi"
|
||||
depends on BR2_PACKAGE_GNU_EFI_ARCH_SUPPORTS
|
||||
help
|
||||
Develop EFI applications for ARM-64, ARM-32, x86_64, IA-64
|
||||
(IPF), IA-32 (x86), and MIPS platforms using the GNU toolchain
|
||||
and the EFI development environment.
|
||||
|
||||
http://gnu-efi.sourceforge.net/
|
||||
@@ -0,0 +1,6 @@
|
||||
# From http://sourceforge.net/projects/gnu-efi/files
|
||||
md5 960a8379b6f95ee73d7778b70bf2a089 gnu-efi-3.0.10.tar.bz2
|
||||
sha1 a51b81eda97c0acbf3ac86123f298d3c0e396ce5 gnu-efi-3.0.10.tar.bz2
|
||||
# Locally computed
|
||||
sha256 f12082a3a5f0c3e38c67262a9f34245d139ac2cdfc0a0bdcf03c9b1f56fa4fed gnu-efi-3.0.10.tar.bz2
|
||||
sha256 42d352e9c28dd446fd0209cd6f75588c8e41f0934540bb382bbd61c752360265 README.efilib
|
||||
@@ -0,0 +1,43 @@
|
||||
################################################################################
|
||||
#
|
||||
# gnu-efi
|
||||
#
|
||||
################################################################################
|
||||
|
||||
GNU_EFI_VERSION = 3.0.10
|
||||
GNU_EFI_SOURCE = gnu-efi-$(GNU_EFI_VERSION).tar.bz2
|
||||
GNU_EFI_SITE = http://downloads.sourceforge.net/project/gnu-efi
|
||||
GNU_EFI_INSTALL_STAGING = YES
|
||||
GNU_EFI_LICENSE = BSD-3-Clause and/or GPL-2.0+ (gnuefi), BSD-3-Clause (efilib)
|
||||
GNU_EFI_LICENSE_FILES = README.efilib
|
||||
|
||||
# gnu-efi is a set of library and header files used to build
|
||||
# standalone EFI applications such as bootloaders. There is no point
|
||||
# in installing these libraries to the target.
|
||||
GNU_EFI_INSTALL_TARGET = NO
|
||||
|
||||
ifeq ($(BR2_i386),y)
|
||||
GNU_EFI_PLATFORM = ia32
|
||||
else ifeq ($(BR2_x86_64),y)
|
||||
GNU_EFI_PLATFORM = x86_64
|
||||
else ifeq ($(BR2_arm)$(BR2_armeb),y)
|
||||
GNU_EFI_PLATFORM = arm
|
||||
else ifeq ($(BR2_aarch64)$(BR2_aarch64_be),y)
|
||||
GNU_EFI_PLATFORM = aarch64
|
||||
endif
|
||||
|
||||
GNU_EFI_MAKE_OPTS = \
|
||||
ARCH=$(GNU_EFI_PLATFORM) \
|
||||
CROSS_COMPILE="$(TARGET_CROSS)" \
|
||||
PREFIX=/usr
|
||||
|
||||
define GNU_EFI_BUILD_CMDS
|
||||
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) $(GNU_EFI_MAKE_OPTS)
|
||||
endef
|
||||
|
||||
define GNU_EFI_INSTALL_STAGING_CMDS
|
||||
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) $(GNU_EFI_MAKE_OPTS) \
|
||||
INSTALLROOT=$(STAGING_DIR) install
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user