update buildroot to 2017.02.11
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
From 234847440a5d3cf95540ea79f7a08d50cccfef73 Mon Sep 17 00:00:00 2001
|
||||
From: Alistair Francis <alistair.francis@xilinx.com>
|
||||
Date: Tue, 13 Sep 2016 10:48:31 -0700
|
||||
Subject: [PATCH] Remove hardcoded strict -Werror checking
|
||||
|
||||
Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
|
||||
---
|
||||
Config.mk | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/Config.mk b/Config.mk
|
||||
index bd991c6..e7ac662 100644
|
||||
--- a/Config.mk
|
||||
+++ b/Config.mk
|
||||
@@ -36,7 +36,7 @@ CONFIG_$(XEN_OS) := y
|
||||
SHELL ?= /bin/sh
|
||||
|
||||
# Tools to run on system hosting the build
|
||||
-HOSTCFLAGS = -Wall -Werror -Wstrict-prototypes -O2 -fomit-frame-pointer
|
||||
+HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
|
||||
HOSTCFLAGS += -fno-strict-aliasing
|
||||
|
||||
DISTDIR ?= $(XEN_ROOT)/dist
|
||||
--
|
||||
2.7.4
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
From 2a310549aaeaba05f640ade43488bb893101ce4a Mon Sep 17 00:00:00 2001
|
||||
From: "Yann E. MORIN" <yann.morin.1998@free.fr>
|
||||
Date: Sat, 29 Oct 2016 16:35:26 +0200
|
||||
Subject: [PATCH] xen/Rules.mk: fix build with CFLAGS from environment
|
||||
|
||||
When CFLAGS are passed from the environment, the first-level make
|
||||
invocation will append -D__OBJECT_FILE__ to it, then call a second
|
||||
make invocation, that will have those new CFLAGS in its environment,
|
||||
but will also append -D__OBJECT_FILE__ to those.
|
||||
|
||||
Then, the compiler fails because __OBEJECT_FILE__ is defined twice.
|
||||
|
||||
Just undefine it before defining it again, as a *workaround* to this
|
||||
issue.
|
||||
|
||||
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
|
||||
---
|
||||
xen/Rules.mk | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/xen/Rules.mk b/xen/Rules.mk
|
||||
index a9fda71..09ccbfa 100644
|
||||
--- a/xen/Rules.mk
|
||||
+++ b/xen/Rules.mk
|
||||
@@ -49,7 +49,7 @@ ALL_OBJS-$(CONFIG_CRYPTO) += $(BASEDIR)/crypto/built_in.o
|
||||
CFLAGS += -nostdinc -fno-builtin -fno-common
|
||||
CFLAGS += -Werror -Wredundant-decls -Wno-pointer-arith
|
||||
CFLAGS += -pipe -g -D__XEN__ -include $(BASEDIR)/include/xen/config.h
|
||||
-CFLAGS += '-D__OBJECT_FILE__="$@"'
|
||||
+CFLAGS += -U__OBJECT_FILE__ '-D__OBJECT_FILE__="$@"'
|
||||
|
||||
ifneq ($(clang),y)
|
||||
# Clang doesn't understand this command line argument, and doesn't appear to
|
||||
--
|
||||
2.7.4
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
From 19f1e70041044fde1542109a0525424cc6d5d053 Mon Sep 17 00:00:00 2001
|
||||
From: Alistair Francis <alistair.francis@xilinx.com>
|
||||
Date: Wed, 7 Dec 2016 11:35:10 -0800
|
||||
Subject: [PATCH] tools/libxl: Disable strict Werror checking
|
||||
|
||||
Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
|
||||
---
|
||||
tools/libxl/Makefile | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/tools/libxl/Makefile b/tools/libxl/Makefile
|
||||
index defeb40..239faf3 100644
|
||||
--- a/tools/libxl/Makefile
|
||||
+++ b/tools/libxl/Makefile
|
||||
@@ -11,7 +11,7 @@ MINOR = 0
|
||||
XLUMAJOR = 4.7
|
||||
XLUMINOR = 0
|
||||
|
||||
-CFLAGS += -Werror -Wno-format-zero-length -Wmissing-declarations \
|
||||
+CFLAGS += -Wno-format-zero-length -Wmissing-declarations \
|
||||
-Wno-declaration-after-statement -Wformat-nonliteral
|
||||
CFLAGS += -I. -fPIC
|
||||
|
||||
--
|
||||
2.7.4
|
||||
|
||||
44
bsp/buildroot-2017.02.11/package/xen/Config.in
Normal file
44
bsp/buildroot-2017.02.11/package/xen/Config.in
Normal file
@@ -0,0 +1,44 @@
|
||||
config BR2_PACKAGE_XEN
|
||||
bool "xen"
|
||||
# needs "dmb" on ARM, so ARM >= v7
|
||||
depends on BR2_ARM_CPU_ARMV7A || BR2_aarch64
|
||||
select BR2_PACKAGE_XEN_HYPERVISOR if !BR2_PACKAGE_XEN_TOOLS
|
||||
help
|
||||
This package builds the Xen hypervisor and toolstack.
|
||||
|
||||
http://www.xenproject.org/
|
||||
|
||||
if BR2_PACKAGE_XEN
|
||||
|
||||
config BR2_PACKAGE_XEN_HYPERVISOR
|
||||
bool "Xen hypervisor"
|
||||
help
|
||||
The Xen binaries are avaliable in /usr/lib/xen/
|
||||
See http://wiki.xenproject.org/wiki/Getting_Started for using the
|
||||
Xen hypervisor.
|
||||
|
||||
config BR2_PACKAGE_XEN_TOOLS
|
||||
bool "Xen tools"
|
||||
depends on !BR2_STATIC_LIBS # dtc (libfdt)
|
||||
depends on BR2_PACKAGE_LIBAIO_ARCH_SUPPORTS
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2
|
||||
depends on BR2_USE_WCHAR # libglib2
|
||||
select BR2_PACKAGE_DTC
|
||||
select BR2_PACKAGE_LIBAIO
|
||||
select BR2_PACKAGE_LIBGLIB2
|
||||
select BR2_PACKAGE_NCURSES
|
||||
select BR2_PACKAGE_OPENSSL
|
||||
select BR2_PACKAGE_PIXMAN
|
||||
select BR2_PACKAGE_UTIL_LINUX
|
||||
select BR2_PACKAGE_UTIL_LINUX_LIBUUID
|
||||
select BR2_PACKAGE_YAJL
|
||||
select BR2_PACKAGE_ARGP_STANDALONE if !BR2_TOOLCHAIN_USES_GLIBC
|
||||
help
|
||||
The Xen tools can be accessed by the xl command.
|
||||
|
||||
comment "xen tools need a toolchain w/ wchar, threads, dynamic library"
|
||||
depends on BR2_PACKAGE_LIBAIO_ARCH_SUPPORTS
|
||||
depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || \
|
||||
BR2_STATIC_LIBS
|
||||
|
||||
endif
|
||||
13
bsp/buildroot-2017.02.11/package/xen/xen.hash
Normal file
13
bsp/buildroot-2017.02.11/package/xen/xen.hash
Normal file
@@ -0,0 +1,13 @@
|
||||
# Locally computed
|
||||
sha256 5b5385b476e59e4cf31ecc6dd605df38814b83432b8e8d917f18c8edfdfb708f xen-4.7.3.tar.gz
|
||||
sha256 fffcc0a4428723e6aea391ff4f1d27326b5a3763d2308cbde64e6a786502c702 xsa226-4.7.patch
|
||||
sha256 9923a47e5f86949800887596f098954a08ef73a01d74b1dbe16cab2e6b1fabb2 xsa227.patch
|
||||
sha256 5a7416f15ac9cd7cace354b6102ff58199fe0581f65a36a36869650c71784e48 xsa228-4.8.patch
|
||||
sha256 77a73f1c32d083e315ef0b1bbb119cb8840ceb5ada790cad76cbfb9116f725cc xsa230.patch
|
||||
sha256 ce29b56a0480f4835b37835b351e704d204bb0ccd22325f487127aa2776cc2cf xsa231-4.7.patch
|
||||
sha256 5068a78293daa58557c30c95141b775becfb650de6a5eda0d82a4a321ced551c xsa232.patch
|
||||
sha256 f721cc49ba692b2f36299b631451f51d7340b8b4732f74c98f01cb7a80d8662b xsa233.patch
|
||||
sha256 169e4e0eaa6b27e58ff0f4ce50e8fcc3f81b1e0a10210decf22d1b4cac7501fb xsa234-4.8.patch
|
||||
sha256 f30848eee71e66687b421b87be1d8e3f454c0eb395422546c62a689153d1e31c xsa235-4.7.patch
|
||||
sha256 526f9e1b127fbb316762ce8e8f4563bc9de0c55a1db581456a3017d570d35bdd 0001-xen-page_alloc-Cover-memory-unreserved-after-boot-in.patch
|
||||
sha256 7164010112fcccd9cd88e72ace2eeabdb364dd6f4d05c434686267d18067f420 0002-xen-arm-Correctly-report-the-memory-region-in-the-du.patch
|
||||
69
bsp/buildroot-2017.02.11/package/xen/xen.mk
Normal file
69
bsp/buildroot-2017.02.11/package/xen/xen.mk
Normal file
@@ -0,0 +1,69 @@
|
||||
################################################################################
|
||||
#
|
||||
# Xen
|
||||
#
|
||||
################################################################################
|
||||
|
||||
XEN_VERSION = 4.7.3
|
||||
XEN_SITE = https://downloads.xenproject.org/release/xen/$(XEN_VERSION)
|
||||
XEN_PATCH = \
|
||||
https://xenbits.xenproject.org/xsa/xsa226-4.7.patch \
|
||||
https://xenbits.xenproject.org/xsa/xsa227.patch \
|
||||
https://xenbits.xenproject.org/xsa/xsa228-4.8.patch \
|
||||
https://xenbits.xenproject.org/xsa/xsa230.patch \
|
||||
https://xenbits.xenproject.org/xsa/xsa231-4.7.patch \
|
||||
https://xenbits.xenproject.org/xsa/xsa232.patch \
|
||||
https://xenbits.xenproject.org/xsa/xsa233.patch \
|
||||
https://xenbits.xenproject.org/xsa/xsa234-4.8.patch \
|
||||
https://xenbits.xenproject.org/xsa/xsa235-4.7.patch \
|
||||
https://xenbits.xenproject.org/xsa/xsa245/0001-xen-page_alloc-Cover-memory-unreserved-after-boot-in.patch \
|
||||
https://xenbits.xenproject.org/xsa/xsa245/0002-xen-arm-Correctly-report-the-memory-region-in-the-du.patch
|
||||
XEN_LICENSE = GPLv2
|
||||
XEN_LICENSE_FILES = COPYING
|
||||
XEN_DEPENDENCIES = host-python
|
||||
|
||||
# Calculate XEN_ARCH
|
||||
ifeq ($(ARCH),aarch64)
|
||||
XEN_ARCH = arm64
|
||||
else ifeq ($(ARCH),arm)
|
||||
XEN_ARCH = arm32
|
||||
endif
|
||||
|
||||
XEN_CONF_OPTS = --disable-ocamltools
|
||||
|
||||
XEN_CONF_ENV = PYTHON=$(HOST_DIR)/usr/bin/python2
|
||||
XEN_MAKE_ENV = \
|
||||
XEN_TARGET_ARCH=$(XEN_ARCH) \
|
||||
CROSS_COMPILE=$(TARGET_CROSS) \
|
||||
$(TARGET_CONFIGURE_OPTS)
|
||||
|
||||
ifeq ($(BR2_PACKAGE_XEN_HYPERVISOR),y)
|
||||
XEN_MAKE_OPTS += dist-xen
|
||||
XEN_INSTALL_IMAGES = YES
|
||||
define XEN_INSTALL_IMAGES_CMDS
|
||||
cp $(@D)/xen/xen $(BINARIES_DIR)
|
||||
endef
|
||||
else
|
||||
XEN_CONF_OPTS += --disable-xen
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_XEN_TOOLS),y)
|
||||
XEN_DEPENDENCIES += dtc libaio libglib2 ncurses openssl pixman util-linux yajl
|
||||
ifeq ($(BR2_PACKAGE_ARGP_STANDALONE),y)
|
||||
XEN_DEPENDENCIES += argp-standalone
|
||||
endif
|
||||
XEN_INSTALL_TARGET_OPTS += DESTDIR=$(TARGET_DIR) install-tools
|
||||
XEN_MAKE_OPTS += dist-tools
|
||||
XEN_CONF_OPTS += --with-extra-qemuu-configure-args="--disable-sdl"
|
||||
|
||||
define XEN_INSTALL_INIT_SYSV
|
||||
mv $(TARGET_DIR)/etc/init.d/xencommons $(TARGET_DIR)/etc/init.d/S50xencommons
|
||||
mv $(TARGET_DIR)/etc/init.d/xen-watchdog $(TARGET_DIR)/etc/init.d/S50xen-watchdog
|
||||
mv $(TARGET_DIR)/etc/init.d/xendomains $(TARGET_DIR)/etc/init.d/S60xendomains
|
||||
endef
|
||||
else
|
||||
XEN_INSTALL_TARGET = NO
|
||||
XEN_CONF_OPTS += --disable-tools
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user