update buildroot to 2017.02.11
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
From bbfcc60497c326576bb23cb01d90115ef3cf6947 Mon Sep 17 00:00:00 2001
|
||||
From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
|
||||
Date: Fri, 25 Nov 2016 20:26:52 +0200
|
||||
Subject: [PATCH] Remove unneeded <uchar.h> include
|
||||
|
||||
This fixes the build with uClibc.
|
||||
|
||||
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
|
||||
---
|
||||
src/efibootdump.c | 1 -
|
||||
src/eficonman.c | 1 -
|
||||
2 files changed, 2 deletions(-)
|
||||
|
||||
diff --git a/src/efibootdump.c b/src/efibootdump.c
|
||||
index 6ff8360..7c5a1c5 100644
|
||||
--- a/src/efibootdump.c
|
||||
+++ b/src/efibootdump.c
|
||||
@@ -19,7 +19,6 @@
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
-#include <uchar.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "error.h"
|
||||
diff --git a/src/eficonman.c b/src/eficonman.c
|
||||
index 2c2be38..9bfae79 100644
|
||||
--- a/src/eficonman.c
|
||||
+++ b/src/eficonman.c
|
||||
@@ -17,7 +17,6 @@
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
-#include <uchar.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#define _(String) gettext (String)
|
||||
--
|
||||
2.10.2
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
From a542b169003c2ef95ce6c00d40050eb10568b612 Mon Sep 17 00:00:00 2001
|
||||
From: Peter Jones <pjones@redhat.com>
|
||||
Date: Mon, 6 Feb 2017 16:34:54 -0500
|
||||
Subject: [PATCH] Remove extra const keywords gcc 7 gripes about.
|
||||
|
||||
Signed-off-by: Peter Jones <pjones@redhat.com>
|
||||
[Backported from upstream commit a542b169003c2ef95ce6c00d40050eb10568b612]
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
---
|
||||
src/efibootdump.c | 2 +-
|
||||
src/efibootmgr.c | 4 ++--
|
||||
2 files changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/src/efibootdump.c b/src/efibootdump.c
|
||||
index 6ff8360..30a1943 100644
|
||||
--- a/src/efibootdump.c
|
||||
+++ b/src/efibootdump.c
|
||||
@@ -39,7 +39,7 @@ print_boot_entry(efi_load_option *loadopt, size_t data_size)
|
||||
uint8_t *optional_data = NULL;
|
||||
size_t optional_data_len = 0;
|
||||
uint16_t pathlen;
|
||||
- const unsigned char const *desc;
|
||||
+ const unsigned char *desc;
|
||||
char *raw;
|
||||
size_t raw_len;
|
||||
|
||||
diff --git a/src/efibootmgr.c b/src/efibootmgr.c
|
||||
index 493f2cf..90a0998 100644
|
||||
--- a/src/efibootmgr.c
|
||||
+++ b/src/efibootmgr.c
|
||||
@@ -221,7 +221,7 @@ warn_duplicate_name(list_t *var_list)
|
||||
list_t *pos;
|
||||
var_entry_t *entry;
|
||||
efi_load_option *load_option;
|
||||
- const unsigned char const *desc;
|
||||
+ const unsigned char *desc;
|
||||
|
||||
list_for_each(pos, var_list) {
|
||||
entry = list_entry(pos, var_entry_t, list);
|
||||
@@ -873,7 +873,7 @@ show_vars(const char *prefix)
|
||||
{
|
||||
list_t *pos;
|
||||
var_entry_t *boot;
|
||||
- const unsigned char const *description;
|
||||
+ const unsigned char *description;
|
||||
efi_load_option *load_option;
|
||||
efidp dp = NULL;
|
||||
unsigned char *optional_data = NULL;
|
||||
--
|
||||
2.9.4
|
||||
|
||||
27
bsp/buildroot-2017.02.11/package/efibootmgr/Config.in
Normal file
27
bsp/buildroot-2017.02.11/package/efibootmgr/Config.in
Normal file
@@ -0,0 +1,27 @@
|
||||
config BR2_PACKAGE_EFIBOOTMGR
|
||||
bool "efibootmgr"
|
||||
depends on BR2_PACKAGE_EFIVAR_ARCH_SUPPORTS # efivar
|
||||
depends on !BR2_STATIC_LIBS # efivar
|
||||
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12 # efivar
|
||||
depends on !BR2_TOOLCHAIN_USES_MUSL # efivar
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # efivar
|
||||
depends on !BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_MIPS
|
||||
depends on BR2_USE_WCHAR # gettext
|
||||
select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT
|
||||
select BR2_PACKAGE_EFIVAR
|
||||
help
|
||||
A Linux user-space application to modify the Intel Extensible
|
||||
Firmware Interface (EFI) Boot Manager. This application can create
|
||||
and destroy boot entries, change the boot order, change the next
|
||||
running boot option, and more.
|
||||
|
||||
https://github.com/rhinstaller/efibootmgr
|
||||
|
||||
comment "efibootmgr needs a glibc or uClibc toolchain w/ wchar, dynamic library, headers >= 3.12, gcc >= 4.9"
|
||||
depends on BR2_PACKAGE_EFIVAR_ARCH_SUPPORTS
|
||||
depends on BR2_STATIC_LIBS || \
|
||||
!BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12 || \
|
||||
BR2_TOOLCHAIN_USES_MUSL || \
|
||||
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || \
|
||||
!BR2_USE_WCHAR
|
||||
depends on !BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_MIPS
|
||||
@@ -0,0 +1,3 @@
|
||||
# locally computed hash
|
||||
sha256 3f260491e2c62e93cb6347ea6f21aaa5f93152e9e7f0269d314623769d82e473 efibootmgr-14.tar.gz
|
||||
sha256 8e91f16927d296ffebd4f7fafda2f84c0f6201aba089a35e8090abd5aacdc58e 3466fd05c8c6f1052e0426d64eed40f8a88fd78f.patch
|
||||
33
bsp/buildroot-2017.02.11/package/efibootmgr/efibootmgr.mk
Normal file
33
bsp/buildroot-2017.02.11/package/efibootmgr/efibootmgr.mk
Normal file
@@ -0,0 +1,33 @@
|
||||
################################################################################
|
||||
#
|
||||
# efibootmgr
|
||||
#
|
||||
################################################################################
|
||||
|
||||
EFIBOOTMGR_VERSION = 14
|
||||
EFIBOOTMGR_SITE = $(call github,rhinstaller,efibootmgr,$(EFIBOOTMGR_VERSION))
|
||||
# Patch fixes the build with gcc 6.x.
|
||||
EFIBOOTMGR_PATCH = \
|
||||
https://github.com/rhinstaller/efibootmgr/commit/3466fd05c8c6f1052e0426d64eed40f8a88fd78f.patch
|
||||
EFIBOOTMGR_LICENSE = GPLv2+
|
||||
EFIBOOTMGR_LICENSE_FILES = COPYING
|
||||
EFIBOOTMGR_DEPENDENCIES = efivar $(if $(BR2_NEEDS_GETTEXT),gettext)
|
||||
EFIBOOTMGR_LDFLAGS = $(TARGET_LDFLAGS) $(if $(BR2_NEEDS_GETTEXT),-lintl)
|
||||
|
||||
define EFIBOOTMSR_PATCH_HEADER_PATH
|
||||
$(SED) 's,-I/,-I$(STAGING_DIR)/,' $(@D)/Makefile
|
||||
endef
|
||||
|
||||
EFIBOOTMGR_POST_PATCH_HOOKS += EFIBOOTMSR_PATCH_HEADER_PATH
|
||||
|
||||
define EFIBOOTMGR_BUILD_CMDS
|
||||
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) \
|
||||
LDFLAGS="$(EFIBOOTMGR_LDFLAGS)" $(MAKE1) -C $(@D)
|
||||
endef
|
||||
|
||||
define EFIBOOTMGR_INSTALL_TARGET_CMDS
|
||||
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
|
||||
DESTDIR=$(TARGET_DIR) install
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user