Compare commits
99
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ef19f376c7 | ||
|
|
47d33e20da | ||
|
|
a3b1e975af | ||
|
|
55a9d6d558 | ||
|
|
1f357180fb | ||
|
|
ff0cf723b7 | ||
|
|
80546e97fa | ||
|
|
f4083db2ee | ||
|
|
d3c6db3622 | ||
|
|
3785e822de | ||
|
|
f539d49eeb | ||
|
|
4688b3a7e2 | ||
|
|
7fc336b28a | ||
|
|
1a2cf62688 | ||
|
|
fb1ad31e61 | ||
|
|
d257a25c9c | ||
|
|
e24688bb47 | ||
|
|
ab157dd4d1 | ||
|
|
e4ebf9b0be | ||
|
|
b0041d3cb8 | ||
|
|
e5e4d4710e | ||
|
|
eb7e07702c | ||
|
|
095d15ab2a | ||
|
|
6f6795d77d | ||
|
|
bcca31aff6 | ||
|
|
055a155a20 | ||
|
|
a8ee37245c | ||
|
|
a111406f79 | ||
|
|
945cda6d17 | ||
|
|
58ae0b35ed | ||
|
|
11089e2062 | ||
|
|
4867d07d35 | ||
|
|
95e8c5eb6f | ||
|
|
c5299a7dd0 | ||
|
|
8a26adddde | ||
|
|
eff989bab8 | ||
|
|
24cc8585aa | ||
|
|
978724d8cf | ||
|
|
e6d0177f53 | ||
|
|
ed295ce49b | ||
|
|
0b9c2095ad | ||
|
|
25a2650086 | ||
|
|
7ec15db9db | ||
|
|
0ac915e207 | ||
|
|
5e5547a73d | ||
|
|
8bbb040e1e | ||
|
|
ecbe2bef76 | ||
|
|
f4a8ba8c8b | ||
|
|
049c0f1b4d | ||
|
|
20cf789403 | ||
|
|
684e0371bc | ||
|
|
1757932dfc | ||
|
|
0ba4a139f5 | ||
|
|
f121eeb645 | ||
|
|
6361a50e3f | ||
|
|
e845e012e7 | ||
|
|
a579514314 | ||
|
|
033e2b9431 | ||
|
|
e8d2188db3 | ||
|
|
afb6bc67a6 | ||
|
|
e4f7ec4bd1 | ||
|
|
d88c79090a | ||
|
|
ff4cccbdcf | ||
|
|
79bab1fd89 | ||
|
|
8d845683e3 | ||
|
|
7d6cd3677a | ||
|
|
c2da653d08 | ||
|
|
5c12506f4d | ||
|
|
6db1651e34 | ||
|
|
c624d2eef8 | ||
|
|
3cc7bd2db9 | ||
|
|
6e45e33f27 | ||
|
|
128a16acee | ||
|
|
d2f0f5df46 | ||
|
|
aff2f73958 | ||
|
|
c21fca53db | ||
|
|
c9f9b16a2f | ||
|
|
1e2c245bf4 | ||
|
|
73240a5b68 | ||
|
|
8e13f7e11e | ||
|
|
6e6208ea79 | ||
|
|
bb95fef1e0 | ||
|
|
50ace0bcc3 | ||
|
|
163b6a5b39 | ||
|
|
1291528bde | ||
|
|
2f33e4556b | ||
|
|
a4a6c74171 | ||
|
|
d38797edee | ||
|
|
5cbfab1c20 | ||
|
|
8a8800d156 | ||
|
|
6278263355 | ||
|
|
0cfe1332d8 | ||
|
|
f6756d6915 | ||
|
|
2d29f050d5 | ||
|
|
03d5dad05f | ||
|
|
cf821efbd0 | ||
|
|
dcfdf82e53 | ||
|
|
5a5e76381f | ||
|
|
9682fcaf46 |
+3
-2
@@ -49,7 +49,9 @@ check-DEVELOPERS:
|
||||
.runtime_test: &runtime_test
|
||||
# Keep build directories so the rootfs can be an artifact of the job. The
|
||||
# runner will clean up those files for us.
|
||||
script: ./support/testing/run-tests -o test-output/ -d test-dl/ -k ${CI_BUILD_NAME}
|
||||
# Multiply every emulator timeout by 10 to avoid sporadic failures in
|
||||
# elastic runners.
|
||||
script: ./support/testing/run-tests -o test-output/ -d test-dl/ -k --timeout-multiplier 10 ${CI_BUILD_NAME}
|
||||
artifacts:
|
||||
when: always
|
||||
expire_in: 2 weeks
|
||||
@@ -66,7 +68,6 @@ arm_juno_defconfig: *defconfig
|
||||
armadeus_apf27_defconfig: *defconfig
|
||||
armadeus_apf28_defconfig: *defconfig
|
||||
armadeus_apf51_defconfig: *defconfig
|
||||
armadeus_apf9328_defconfig: *defconfig
|
||||
at91sam9260eknf_defconfig: *defconfig
|
||||
at91sam9g20dfc_defconfig: *defconfig
|
||||
at91sam9g45m10ek_defconfig: *defconfig
|
||||
|
||||
+3
-1
@@ -49,7 +49,9 @@ check-DEVELOPERS:
|
||||
.runtime_test: &runtime_test
|
||||
# Keep build directories so the rootfs can be an artifact of the job. The
|
||||
# runner will clean up those files for us.
|
||||
script: ./support/testing/run-tests -o test-output/ -d test-dl/ -k ${CI_BUILD_NAME}
|
||||
# Multiply every emulator timeout by 10 to avoid sporadic failures in
|
||||
# elastic runners.
|
||||
script: ./support/testing/run-tests -o test-output/ -d test-dl/ -k --timeout-multiplier 10 ${CI_BUILD_NAME}
|
||||
artifacts:
|
||||
when: always
|
||||
expire_in: 2 weeks
|
||||
|
||||
@@ -1,3 +1,53 @@
|
||||
2017.08-rc3, Released August 23rd, 2017
|
||||
|
||||
Fixes all over the tree.
|
||||
|
||||
Updated/fixed packages: alsa-lib, alsa-utils, cc-tool,
|
||||
dbus-cpp, e2fsprogs, elf2flt, faad2, fakeroot, gcc, git, gpsd,
|
||||
gst1-validate, kvmtool, libconfuse, libepoxy, librsync,
|
||||
libspatialindex, libunwind, linux, linux-headers, lua,
|
||||
mariadb, mesa3d, mtd, openocd, python3, syslinux, sysvinit,
|
||||
whois, xen, zmqpp.
|
||||
|
||||
Updated/fixed defconfigs: ci20, socrates_cyclone5,
|
||||
toradex_apalis_imx6.
|
||||
|
||||
Removed defconfig: Armadeus APF9328.
|
||||
|
||||
skeleton-* packages introduced in -rc1 have been renamed to
|
||||
skeleton-init-* instead.
|
||||
|
||||
Issues resolved (http://bugs.buildroot.org):
|
||||
|
||||
#10141: Squashfs extended attribute failures
|
||||
|
||||
2017.08-rc2, Released August 11th, 2017
|
||||
|
||||
Fixes all over the tree.
|
||||
|
||||
Updated/fixed packages: bind, dbus, erlang-p1-xml, faad2,
|
||||
ficl, gcc, gdb, glibc, jack2, libcurl, linux, linux-headers,
|
||||
lua, mutt, nvme, qt5base, skeleton-common, snappy, stella,
|
||||
swupdate, uclibc, valgrind, webkitgtk.
|
||||
|
||||
Updated/fixed defconfigs: beaglebone_qt5, minnowboard_max,
|
||||
nanopi_m1{, _plus}, olimex_a20_olinuxino_lime, qemu_sparc,
|
||||
qemu_sparc64.
|
||||
|
||||
The cmake-package infrastructure for host packages has been
|
||||
fixed to not incorrectly detect target packages through
|
||||
pkg-config.
|
||||
|
||||
Issues resolved (http://bugs.buildroot.org):
|
||||
|
||||
#9926: systemd-resolved.service: Failed at step NAMESPACE (systemd 233)
|
||||
#10021: libqeglfs-viv-integration.so file is missing for qt5 on armv7
|
||||
#10026: lua-5.3.4: fix lua linker error in swupdate
|
||||
#10146: package/skeleton-common fix recursive variable
|
||||
#10156: glibc compilation fails for X86 32bits (i386)
|
||||
#10201: toolchain-wrapper.c:192: (error) Memory leak:
|
||||
#10221: Buildroot Support
|
||||
|
||||
2017.08-rc1, Released August 2nd, 2017
|
||||
|
||||
Infrastructure:
|
||||
|
||||
@@ -87,9 +87,9 @@ all:
|
||||
.PHONY: all
|
||||
|
||||
# Set and export the version string
|
||||
export BR2_VERSION := 2017.08-rc1
|
||||
export BR2_VERSION := 2017.08-rc3
|
||||
# Actual time the release is cut (for reproducible builds)
|
||||
BR2_VERSION_EPOCH = 150170700
|
||||
BR2_VERSION_EPOCH = 1503524000
|
||||
|
||||
# Save running make version since it's clobbered by the make package
|
||||
RUNNING_MAKE_VERSION := $(MAKE_VERSION)
|
||||
|
||||
@@ -13,7 +13,6 @@ Supported platforms
|
||||
Buildroot currently supports the following Armadeus platforms with the
|
||||
associated defconfigs:
|
||||
|
||||
* APF9328 SOM + devt boards -> armadeus_apf9328_defconfig
|
||||
* APF27 SOM + devt board -> armadeus_apf27_defconfig
|
||||
* APF51 SOM + devt board -> armadeus_apf51_defconfig
|
||||
* APF28 SOM + devt board -> armadeus_apf28_defconfig
|
||||
@@ -46,15 +45,12 @@ When the build is finished, you will end up with:
|
||||
|
||||
output/images/
|
||||
├── imx**-apfxxdev.dtb [1]
|
||||
├── rootfs.jffs2 [2]
|
||||
├── rootfs.tar
|
||||
├── rootfs.ubi [2]
|
||||
├── rootfs.ubifs [2]
|
||||
├── rootfs.ubi
|
||||
├── rootfs.ubifs
|
||||
└── uImage
|
||||
|
||||
[1] Only if the kernel version used uses a Device Tree.
|
||||
[2] .ubi/.ubifs images are not available on APF9328 and replaced by a
|
||||
.jffs2 one in this case.
|
||||
|
||||
Building U-Boot is currently not supported in these configurations.
|
||||
|
||||
@@ -69,7 +65,6 @@ it:
|
||||
$ cp output/images/uImage /tftpboot/apfxx-linux.bin
|
||||
$ cp output/images/*.dtb /tftpboot/
|
||||
$ cp output/images/rootfs.ubi /tftpboot/apfxx-rootfs.ubi
|
||||
$ cp output/images/rootfs.jffs2 /tftpboot/apfxx-rootfs.jffs2
|
||||
|
||||
where "apfxx" is the version of your SOM, as used with _defconfigs.
|
||||
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
image boot.vfat {
|
||||
vfat {
|
||||
files = {
|
||||
"MLO",
|
||||
"u-boot.img",
|
||||
"zImage",
|
||||
"uEnv.txt",
|
||||
"am335x-evm.dtb",
|
||||
"am335x-evmsk.dtb",
|
||||
"am335x-bone.dtb",
|
||||
"am335x-boneblack.dtb",
|
||||
}
|
||||
}
|
||||
size = 16M
|
||||
}
|
||||
|
||||
image sdcard.img {
|
||||
hdimage {
|
||||
}
|
||||
|
||||
partition u-boot {
|
||||
partition-type = 0xC
|
||||
bootable = "true"
|
||||
image = "boot.vfat"
|
||||
}
|
||||
|
||||
partition rootfs {
|
||||
partition-type = 0x83
|
||||
image = "rootfs.ext4"
|
||||
size = 512M
|
||||
}
|
||||
}
|
||||
@@ -8,7 +8,15 @@ BOARD_DIR="$(dirname $0)"
|
||||
# copy the uEnv.txt to the output/images directory
|
||||
cp board/beaglebone/uEnv.txt $BINARIES_DIR/uEnv.txt
|
||||
|
||||
GENIMAGE_CFG="${BOARD_DIR}/genimage.cfg"
|
||||
# the 4.1 kernel does not provide a dtb for beaglebone green, so we
|
||||
# use a different genimage config if am335x-bonegreen.dtb is not
|
||||
# built:
|
||||
if [ -e ${BINARIES_DIR}/am335x-bonegreen.dtb ] ; then
|
||||
GENIMAGE_CFG="${BOARD_DIR}/genimage.cfg"
|
||||
else
|
||||
GENIMAGE_CFG="${BOARD_DIR}/genimage_linux41.cfg"
|
||||
fi
|
||||
|
||||
GENIMAGE_TMP="${BUILD_DIR}/genimage.tmp"
|
||||
|
||||
rm -rf "${GENIMAGE_TMP}"
|
||||
|
||||
@@ -106,6 +106,7 @@ fi
|
||||
|
||||
if itest.s "x" != "x${wlmac}" ; then
|
||||
setenv bootargs ${bootargs} wlcore.mac=${wlmac}
|
||||
setenv bootargs ${bootargs} wlan.mac=${wlmac}
|
||||
fi
|
||||
|
||||
if itest.s "x" != "x${gpumem}" ; then
|
||||
|
||||
+6
-6
@@ -1,4 +1,4 @@
|
||||
From db49dbac8a0c563fb6d07c348873e8ae50fee2a6 Mon Sep 17 00:00:00 2001
|
||||
From 3bd5c2d951421a89f76b2423e5810862f53486c1 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Beno=C3=AEt=20Allard?= <benoit.allard@greenbone.net>
|
||||
Date: Fri, 9 Jun 2017 11:59:43 +0200
|
||||
Subject: [PATCH] Update the longjump calls to fit the new declaration
|
||||
@@ -12,7 +12,7 @@ Signed-off-by: Benoît Allard <benoit.allard@greenbone.net>
|
||||
1 file changed, 1 insertion(+), 2 deletions(-)
|
||||
|
||||
diff --git a/efi/main.c b/efi/main.c
|
||||
index fd95f5c..b5383cd 100644
|
||||
index 208fee4f..71d31a5c 100644
|
||||
--- a/efi/main.c
|
||||
+++ b/efi/main.c
|
||||
@@ -10,7 +10,6 @@
|
||||
@@ -23,15 +23,15 @@ index fd95f5c..b5383cd 100644
|
||||
|
||||
#include "efi.h"
|
||||
#include "fio.h"
|
||||
@@ -31,7 +30,7 @@ uint32_t timer_irq;
|
||||
@@ -30,7 +29,7 @@ uint32_t timer_irq;
|
||||
__export uint8_t KbdMap[256];
|
||||
char aux_seg[256];
|
||||
|
||||
-static jmp_buf load_error_buf;
|
||||
+static jmp_buf *load_error_buf;
|
||||
|
||||
EFI_HANDLE image_handle, image_device_handle, mnpsb_handle;
|
||||
|
||||
static inline EFI_STATUS
|
||||
efi_close_protocol(EFI_HANDLE handle, EFI_GUID *guid, EFI_HANDLE agent,
|
||||
--
|
||||
2.1.4
|
||||
2.13.3
|
||||
|
||||
+4
-4
@@ -1,4 +1,4 @@
|
||||
From 755c947e9166366bd1a78efb1e0c7d6e6e2daa07 Mon Sep 17 00:00:00 2001
|
||||
From ca8aaded0c7c3900397029bd9520132b62629308 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Beno=C3=AEt=20Allard?= <benoit.allard@greenbone.net>
|
||||
Date: Mon, 12 Jun 2017 14:59:16 +0200
|
||||
Subject: [PATCH] efi/wrapper: build it with the host toolchain.
|
||||
@@ -15,10 +15,10 @@ Signed-off-by: Benoît Allard <benoit.allard@greenbone.net>
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/efi/Makefile b/efi/Makefile
|
||||
index d3788d9..a17258a 100644
|
||||
index d5443bd5..d24d16db 100644
|
||||
--- a/efi/Makefile
|
||||
+++ b/efi/Makefile
|
||||
@@ -78,7 +78,7 @@ syslinux.so: $(OBJS) $(CORE_OBJS) $(LIB_OBJS)
|
||||
@@ -79,7 +79,7 @@ syslinux.so: $(OBJS) $(CORE_OBJS) $(LIB_OBJS)
|
||||
# cp $^ $@
|
||||
|
||||
wrapper: wrapper.c
|
||||
@@ -28,5 +28,5 @@ index d3788d9..a17258a 100644
|
||||
#
|
||||
# Build the wrapper app and wrap our .so to produce a .efi
|
||||
--
|
||||
2.1.4
|
||||
2.13.3
|
||||
|
||||
@@ -0,0 +1,295 @@
|
||||
From 76946dd67bc856eaf4fe69d0826547a794176f78 Mon Sep 17 00:00:00 2001
|
||||
From: Sylvain Gault <sylvain.gault@gmail.com>
|
||||
Date: Tue, 29 Sep 2015 04:45:09 +0200
|
||||
Subject: [PATCH] bios: Don't try to guess the sections alignment
|
||||
|
||||
For the compression / decompression to succeed, the sections layout must
|
||||
be the same between the virtual memory and load memory. The section
|
||||
alignment was kept in sync by introducing aligment that should be
|
||||
greater or equal to the actual section alignment.
|
||||
|
||||
This patch compute the load memory addresses of the sections so that
|
||||
the layout is the same as the virtual memory addresses.
|
||||
|
||||
Signed-off-by: Sylvain Gault <sylvain.gault@gmail.com>
|
||||
Tested-by: poma <pomidorabelisima@gmail.com>
|
||||
Signed-off-by: Paulo Alcantara <pcacjr@zytor.com>
|
||||
|
||||
Upstream: 0cc9a99e560a2f52bcf052fd85b1efae35ee812f
|
||||
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
|
||||
---
|
||||
core/i386/syslinux.ld | 63 ++++++++++---------------------------------------
|
||||
core/x86_64/syslinux.ld | 63 ++++++++++---------------------------------------
|
||||
2 files changed, 24 insertions(+), 102 deletions(-)
|
||||
|
||||
diff --git a/core/i386/syslinux.ld b/core/i386/syslinux.ld
|
||||
index 73904510..92b75b11 100644
|
||||
--- a/core/i386/syslinux.ld
|
||||
+++ b/core/i386/syslinux.ld
|
||||
@@ -255,10 +255,9 @@ SECTIONS
|
||||
. = 0x100000;
|
||||
|
||||
__pm_code_start = .;
|
||||
+ __vma_to_lma = __pm_code_lma - __pm_code_start;
|
||||
|
||||
- __text_vma = .;
|
||||
- __text_lma = __pm_code_lma;
|
||||
- .text : AT(__text_lma) {
|
||||
+ .text : AT(ADDR(.text) + __vma_to_lma) {
|
||||
FILL(0x90909090)
|
||||
__text_start = .;
|
||||
*(.text)
|
||||
@@ -266,106 +265,68 @@ SECTIONS
|
||||
__text_end = .;
|
||||
}
|
||||
|
||||
- . = ALIGN(32);
|
||||
-
|
||||
- __rodata_vma = .;
|
||||
- __rodata_lma = __rodata_vma + __text_lma - __text_vma;
|
||||
- .rodata : AT(__rodata_lma) {
|
||||
+ .rodata : AT(ADDR(.rodata) + __vma_to_lma) {
|
||||
__rodata_start = .;
|
||||
*(.rodata)
|
||||
*(.rodata.*)
|
||||
__rodata_end = .;
|
||||
}
|
||||
|
||||
- . = ALIGN(4);
|
||||
-
|
||||
- __ctors_vma = .;
|
||||
- __ctors_lma = __ctors_vma + __text_lma - __text_vma;
|
||||
- .ctors : AT(__ctors_lma) {
|
||||
+ .ctors : AT(ADDR(.ctors) + __vma_to_lma) {
|
||||
__ctors_start = .;
|
||||
KEEP (*(SORT(.ctors.*)))
|
||||
KEEP (*(.ctors))
|
||||
__ctors_end = .;
|
||||
}
|
||||
|
||||
- __dtors_vma = .;
|
||||
- __dtors_lma = __dtors_vma + __text_lma - __text_vma;
|
||||
- .dtors : AT(__dtors_lma) {
|
||||
+ .dtors : AT(ADDR(.dtors) + __vma_to_lma) {
|
||||
__dtors_start = .;
|
||||
KEEP (*(SORT(.dtors.*)))
|
||||
KEEP (*(.dtors))
|
||||
__dtors_end = .;
|
||||
}
|
||||
|
||||
- . = ALIGN(4);
|
||||
-
|
||||
- __dynsym_vma = .;
|
||||
- __dynsym_lma = __dynsym_vma + __text_lma - __text_vma;
|
||||
- .dynsym : AT(__dynsym_lma) {
|
||||
+ .dynsym : AT(ADDR(.dynsym) + __vma_to_lma) {
|
||||
__dynsym_start = .;
|
||||
*(.dynsym)
|
||||
__dynsym_end = .;
|
||||
}
|
||||
__dynsym_len = __dynsym_end - __dynsym_start;
|
||||
|
||||
- . = ALIGN(4);
|
||||
-
|
||||
- __dynstr_vma = .;
|
||||
- __dynstr_lma = __dynstr_vma + __text_lma - __text_vma;
|
||||
- .dynstr : AT(__dynstr_lma) {
|
||||
+ .dynstr : AT(ADDR(.dynstr) + __vma_to_lma) {
|
||||
__dynstr_start = .;
|
||||
*(.dynstr)
|
||||
__dynstr_end = .;
|
||||
}
|
||||
__dynstr_len = __dynstr_end - __dynstr_start;
|
||||
|
||||
- . = ALIGN(4);
|
||||
-
|
||||
- __gnu_hash_vma = .;
|
||||
- __gnu_hash_lma = __gnu_hash_vma + __text_lma - __text_vma;
|
||||
- .gnu.hash : AT(__gnu_hash_lma) {
|
||||
+ .gnu.hash : AT(ADDR(.gnu.hash) + __vma_to_lma) {
|
||||
__gnu_hash_start = .;
|
||||
*(.gnu.hash)
|
||||
__gnu_hash_end = .;
|
||||
}
|
||||
|
||||
|
||||
- . = ALIGN(4);
|
||||
-
|
||||
- __dynlink_vma = .;
|
||||
- __dynlink_lma = __dynlink_vma + __text_lma - __text_vma;
|
||||
- .dynlink : AT(__dynlink_lma) {
|
||||
+ .dynlink : AT(ADDR(.dynlink) + __vma_to_lma) {
|
||||
__dynlink_start = .;
|
||||
*(.dynlink)
|
||||
__dynlink_end = .;
|
||||
}
|
||||
|
||||
- . = ALIGN(4);
|
||||
-
|
||||
- __got_vma = .;
|
||||
- __got_lma = __got_vma + __text_lma - __text_vma;
|
||||
- .got : AT(__got_lma) {
|
||||
+ .got : AT(ADDR(.got) + __vma_to_lma) {
|
||||
__got_start = .;
|
||||
KEEP (*(.got.plt))
|
||||
KEEP (*(.got))
|
||||
__got_end = .;
|
||||
}
|
||||
|
||||
- . = ALIGN(4);
|
||||
-
|
||||
- __dynamic_vma = .;
|
||||
- __dynamic_lma = __dynamic_vma + __text_lma - __text_vma;
|
||||
- .dynamic : AT(__dynamic_lma) {
|
||||
+ .dynamic : AT(ADDR(.dynamic) + __vma_to_lma) {
|
||||
__dynamic_start = .;
|
||||
*(.dynamic)
|
||||
__dynamic_end = .;
|
||||
}
|
||||
|
||||
- . = ALIGN(32);
|
||||
-
|
||||
- __data_vma = .;
|
||||
- __data_lma = __data_vma + __text_lma - __text_vma;
|
||||
- .data : AT(__data_lma) {
|
||||
+ .data : AT(ADDR(.data) + __vma_to_lma) {
|
||||
__data_start = .;
|
||||
*(.data)
|
||||
*(.data.*)
|
||||
diff --git a/core/x86_64/syslinux.ld b/core/x86_64/syslinux.ld
|
||||
index bf815c46..70c6e00a 100644
|
||||
--- a/core/x86_64/syslinux.ld
|
||||
+++ b/core/x86_64/syslinux.ld
|
||||
@@ -255,10 +255,9 @@ SECTIONS
|
||||
. = 0x100000;
|
||||
|
||||
__pm_code_start = .;
|
||||
+ __vma_to_lma = __pm_code_lma - __pm_code_start;
|
||||
|
||||
- __text_vma = .;
|
||||
- __text_lma = __pm_code_lma;
|
||||
- .text : AT(__text_lma) {
|
||||
+ .text : AT(ADDR(.text) + __vma_to_lma) {
|
||||
FILL(0x90909090)
|
||||
__text_start = .;
|
||||
*(.text)
|
||||
@@ -266,106 +265,68 @@ SECTIONS
|
||||
__text_end = .;
|
||||
}
|
||||
|
||||
- . = ALIGN(32);
|
||||
-
|
||||
- __rodata_vma = .;
|
||||
- __rodata_lma = __rodata_vma + __text_lma - __text_vma;
|
||||
- .rodata : AT(__rodata_lma) {
|
||||
+ .rodata : AT(ADDR(.rodata) + __vma_to_lma) {
|
||||
__rodata_start = .;
|
||||
*(.rodata)
|
||||
*(.rodata.*)
|
||||
__rodata_end = .;
|
||||
}
|
||||
|
||||
- . = ALIGN(4);
|
||||
-
|
||||
- __ctors_vma = .;
|
||||
- __ctors_lma = __ctors_vma + __text_lma - __text_vma;
|
||||
- .ctors : AT(__ctors_lma) {
|
||||
+ .ctors : AT(ADDR(.ctors) + __vma_to_lma) {
|
||||
__ctors_start = .;
|
||||
KEEP (*(SORT(.ctors.*)))
|
||||
KEEP (*(.ctors))
|
||||
__ctors_end = .;
|
||||
}
|
||||
|
||||
- __dtors_vma = .;
|
||||
- __dtors_lma = __dtors_vma + __text_lma - __text_vma;
|
||||
- .dtors : AT(__dtors_lma) {
|
||||
+ .dtors : AT(ADDR(.dtors) + __vma_to_lma) {
|
||||
__dtors_start = .;
|
||||
KEEP (*(SORT(.dtors.*)))
|
||||
KEEP (*(.dtors))
|
||||
__dtors_end = .;
|
||||
}
|
||||
|
||||
- . = ALIGN(4);
|
||||
-
|
||||
- __dynsym_vma = .;
|
||||
- __dynsym_lma = __dynsym_vma + __text_lma - __text_vma;
|
||||
- .dynsym : AT(__dynsym_lma) {
|
||||
+ .dynsym : AT(ADDR(.dynsym) + __vma_to_lma) {
|
||||
__dynsym_start = .;
|
||||
*(.dynsym)
|
||||
__dynsym_end = .;
|
||||
}
|
||||
__dynsym_len = __dynsym_end - __dynsym_start;
|
||||
|
||||
- . = ALIGN(4);
|
||||
-
|
||||
- __dynstr_vma = .;
|
||||
- __dynstr_lma = __dynstr_vma + __text_lma - __text_vma;
|
||||
- .dynstr : AT(__dynstr_lma) {
|
||||
+ .dynstr : AT(ADDR(.dynstr) + __vma_to_lma) {
|
||||
__dynstr_start = .;
|
||||
*(.dynstr)
|
||||
__dynstr_end = .;
|
||||
}
|
||||
__dynstr_len = __dynstr_end - __dynstr_start;
|
||||
|
||||
- . = ALIGN(4);
|
||||
-
|
||||
- __gnu_hash_vma = .;
|
||||
- __gnu_hash_lma = __gnu_hash_vma + __text_lma - __text_vma;
|
||||
- .gnu.hash : AT(__gnu_hash_lma) {
|
||||
+ .gnu.hash : AT(ADDR(.gnu.hash) + __vma_to_lma) {
|
||||
__gnu_hash_start = .;
|
||||
*(.gnu.hash)
|
||||
__gnu_hash_end = .;
|
||||
}
|
||||
|
||||
|
||||
- . = ALIGN(4);
|
||||
-
|
||||
- __dynlink_vma = .;
|
||||
- __dynlink_lma = __dynlink_vma + __text_lma - __text_vma;
|
||||
- .dynlink : AT(__dynlink_lma) {
|
||||
+ .dynlink : AT(ADDR(.dynlink) + __vma_to_lma) {
|
||||
__dynlink_start = .;
|
||||
*(.dynlink)
|
||||
__dynlink_end = .;
|
||||
}
|
||||
|
||||
- . = ALIGN(4);
|
||||
-
|
||||
- __got_vma = .;
|
||||
- __got_lma = __got_vma + __text_lma - __text_vma;
|
||||
- .got : AT(__got_lma) {
|
||||
+ .got : AT(ADDR(.got) + __vma_to_lma) {
|
||||
__got_start = .;
|
||||
KEEP (*(.got.plt))
|
||||
KEEP (*(.got))
|
||||
__got_end = .;
|
||||
}
|
||||
|
||||
- . = ALIGN(4);
|
||||
-
|
||||
- __dynamic_vma = .;
|
||||
- __dynamic_lma = __dynamic_vma + __text_lma - __text_vma;
|
||||
- .dynamic : AT(__dynamic_lma) {
|
||||
+ .dynamic : AT(ADDR(.dynamic) + __vma_to_lma) {
|
||||
__dynamic_start = .;
|
||||
*(.dynamic)
|
||||
__dynamic_end = .;
|
||||
}
|
||||
|
||||
- . = ALIGN(32);
|
||||
-
|
||||
- __data_vma = .;
|
||||
- __data_lma = __data_vma + __text_lma - __text_vma;
|
||||
- .data : AT(__data_lma) {
|
||||
+ .data : AT(ADDR(.data) + __vma_to_lma) {
|
||||
__data_start = .;
|
||||
*(.data)
|
||||
*(.data.*)
|
||||
--
|
||||
2.13.3
|
||||
|
||||
@@ -0,0 +1,622 @@
|
||||
From a14b1b3d3e375d2e8af8804171ef5e52574dbb2a Mon Sep 17 00:00:00 2001
|
||||
From: "H. Peter Anvin" <hpa@zytor.com>
|
||||
Date: Tue, 9 Feb 2016 18:15:50 -0800
|
||||
Subject: [PATCH] core: Clean up the i386-bios build
|
||||
|
||||
Remove symbols and data structures not used in the i386-bios build,
|
||||
and clean up the linker script so that most internal symbols are
|
||||
HIDDEN.
|
||||
|
||||
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
||||
|
||||
Upstream: ff859050fa4e6535cae098dc35d88a265466448d
|
||||
|
||||
This patch fixes the following build failure with i386 binutils 2.28.1:
|
||||
|
||||
/builds/arnout/buildroot/output/host/bin/i586-buildroot-linux-uclibc-ld -Bsymbolic -pie -E --hash-style=gnu -T
|
||||
/builds/arnout/buildroot/output/build/syslinux-6.03/core/i386/syslinux.ld -M -o ldlinux.elf ldlinux.o \
|
||||
--start-group libcom32.a --whole-archive /builds/arnout/buildroot/output/build/syslinux-6.03/bios/com32/lib/libcom32core.a libldlinux.a --end-group -N
|
||||
--no-omagic \
|
||||
> ldlinux.map
|
||||
/builds/arnout/buildroot/output/host/bin/i586-buildroot-linux-uclibc-ld: ldlinux.elf: Not enough room for program headers, try linking with -N
|
||||
/builds/arnout/buildroot/output/host/bin/i586-buildroot-linux-uclibc-ld: final link failed: Bad value
|
||||
/builds/arnout/buildroot/output/build/syslinux-6.03/core/Makefile:167: recipe for target 'ldlinux.elf' failed
|
||||
|
||||
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
|
||||
---
|
||||
core/extern.inc | 17 +--
|
||||
core/i386/syslinux.ld | 287 +++++++++++++++++++++++++-------------------------
|
||||
core/layout.inc | 11 --
|
||||
3 files changed, 143 insertions(+), 172 deletions(-)
|
||||
|
||||
diff --git a/core/extern.inc b/core/extern.inc
|
||||
index af8eb04c..ce4abfab 100644
|
||||
--- a/core/extern.inc
|
||||
+++ b/core/extern.inc
|
||||
@@ -12,27 +12,17 @@
|
||||
; hello.c
|
||||
extern hello
|
||||
|
||||
- ;abort.c
|
||||
- extern abort_load_new
|
||||
-
|
||||
; elflink/load_env32.c
|
||||
extern load_env32, pm_env32_run
|
||||
|
||||
- ; memscan.c
|
||||
- extern highmem_init
|
||||
-
|
||||
- extern linux_kernel
|
||||
-
|
||||
extern mp1, mp2, mp3, mp4, mp5
|
||||
|
||||
- extern hexdump, mydump
|
||||
+ extern hexdump
|
||||
|
||||
extern mem_init
|
||||
|
||||
; fs.c
|
||||
- extern pm_fs_init, pm_searchdir, getfssec, getfsbytes
|
||||
- extern pm_mangle_name, pm_load_config
|
||||
- extern pm_open_file, pm_close_file
|
||||
+ extern pm_fs_init
|
||||
extern SectorSize, SectorShift
|
||||
|
||||
; chdir.c
|
||||
@@ -41,9 +31,6 @@
|
||||
; readdir.c
|
||||
extern opendir, readdir, closedir
|
||||
|
||||
- ; newconfig.c
|
||||
- extern pm_is_config_file
|
||||
-
|
||||
; idle.c
|
||||
extern __idle
|
||||
|
||||
diff --git a/core/i386/syslinux.ld b/core/i386/syslinux.ld
|
||||
index 92b75b11..39198d75 100644
|
||||
--- a/core/i386/syslinux.ld
|
||||
+++ b/core/i386/syslinux.ld
|
||||
@@ -1,7 +1,7 @@
|
||||
/* -----------------------------------------------------------------------
|
||||
*
|
||||
* Copyright 2008-2009 H. Peter Anvin - All Rights Reserved
|
||||
- * Copyright 2009 Intel Corporation; author: H. Peter Anvin
|
||||
+ * Copyright 2009-2016 Intel Corporation; author: H. Peter Anvin
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@@ -12,7 +12,7 @@
|
||||
* ----------------------------------------------------------------------- */
|
||||
|
||||
/*
|
||||
- * Linker script for the SYSLINUX core
|
||||
+ * Linker script for the SYSLINUX core when built for i386-bios
|
||||
*/
|
||||
|
||||
OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386")
|
||||
@@ -26,7 +26,7 @@ SECTIONS
|
||||
{
|
||||
/* Prefix structure for the compression program */
|
||||
. = 0;
|
||||
- __module_start = .;
|
||||
+ HIDDEN(__module_start = ABSOLUTE(.));
|
||||
.prefix : {
|
||||
*(.prefix)
|
||||
}
|
||||
@@ -35,81 +35,82 @@ SECTIONS
|
||||
. = 0x1000;
|
||||
|
||||
.earlybss (NOLOAD) : {
|
||||
- __earlybss_start = .;
|
||||
+ HIDDEN(__earlybss_start = .);
|
||||
*(.earlybss)
|
||||
- __earlybss_end = .;
|
||||
+ HIDDEN(__earlybss_end = .);
|
||||
}
|
||||
- __earlybss_len = ABSOLUTE(__earlybss_end) - ABSOLUTE(__earlybss_start);
|
||||
- __earlybss_dwords = (__earlybss_len + 3) >> 2;
|
||||
+ HIDDEN(__earlybss_len = ABSOLUTE(__earlybss_end) - ABSOLUTE(__earlybss_start));
|
||||
+ HIDDEN(__earlybss_dwords = (__earlybss_len + 3) >> 2);
|
||||
|
||||
. = ALIGN(4);
|
||||
.bss16 (NOLOAD) : {
|
||||
- __bss16_start = .;
|
||||
+ HIDDEN(__bss16_start = .);
|
||||
*(.bss16)
|
||||
- __bss16_end = .;
|
||||
+ HIDDEN(__bss16_end = .);
|
||||
}
|
||||
- __bss16_len = ABSOLUTE(__bss16_end) - ABSOLUTE(__bss16_start);
|
||||
- __bss16_dwords = (__bss16_len + 3) >> 2;
|
||||
+ HIDDEN(__bss16_len = ABSOLUTE(__bss16_end) - ABSOLUTE(__bss16_start));
|
||||
+ HIDDEN(__bss16_dwords = (__bss16_len + 3) >> 2);
|
||||
|
||||
. = ALIGN(4);
|
||||
.config : AT (__config_lma) {
|
||||
- __config_start = .;
|
||||
+ HIDDEN(__config_start = .);
|
||||
*(.config)
|
||||
- __config_end = .;
|
||||
+ HIDDEN(__config_end = .);
|
||||
}
|
||||
- __config_len = ABSOLUTE(__config_end) - ABSOLUTE(__config_start);
|
||||
- __config_dwords = (__config_len + 3) >> 2;
|
||||
+ HIDDEN(__config_len = ABSOLUTE(__config_end) - ABSOLUTE(__config_start));
|
||||
+ HIDDEN(__config_dwords = (__config_len + 3) >> 2);
|
||||
|
||||
/* Generated and/or copied code */
|
||||
|
||||
. = ALIGN(128); /* Minimum separation from mutable data */
|
||||
.replacestub : AT (__replacestub_lma) {
|
||||
- __replacestub_start = .;
|
||||
+ HIDDEN(__replacestub_start = .);
|
||||
*(.replacestub)
|
||||
- __replacestub_end = .;
|
||||
+ HIDDEN(__replacestub_end = .);
|
||||
}
|
||||
- __replacestub_len = ABSOLUTE(__replacestub_end) - ABSOLUTE(__replacestub_start);
|
||||
- __replacestub_dwords = (__replacestub_len + 3) >> 2;
|
||||
+ HIDDEN(__replacestub_len = ABSOLUTE(__replacestub_end) - ABSOLUTE(__replacestub_start));
|
||||
+ HIDDEN(__replacestub_dwords = (__replacestub_len + 3) >> 2);
|
||||
|
||||
. = ALIGN(16);
|
||||
- __gentextnr_lma = .;
|
||||
+ HIDDEN(__gentextnr_lma = .);
|
||||
.gentextnr : AT(__gentextnr_lma) {
|
||||
- __gentextnr_start = .;
|
||||
+ HIDDEN(__gentextnr_start = .);
|
||||
*(.gentextnr)
|
||||
- __gentextnr_end = .;
|
||||
+ HIDDEN(__gentextnr_end = .);
|
||||
}
|
||||
- __gentextnr_len = ABSOLUTE(__gentextnr_end) - ABSOLUTE(__gentextnr_start);
|
||||
- __gentextnr_dwords = (__gentextnr_len + 3) >> 2;
|
||||
+ HIDDEN(__gentextnr_len = ABSOLUTE(__gentextnr_end) - ABSOLUTE(__gentextnr_start));
|
||||
+ HIDDEN(__gentextnr_dwords = (__gentextnr_len + 3) >> 2);
|
||||
|
||||
. = STACK_BASE;
|
||||
.stack16 : AT(STACK_BASE) {
|
||||
- __stack16_start = .;
|
||||
+ HIDDEN(__stack16_start = .);
|
||||
. += STACK_LEN;
|
||||
- __stack16_end = .;
|
||||
+ HIDDEN(__stack16_end = .);
|
||||
}
|
||||
- __stack16_len = ABSOLUTE(__stack16_end) - ABSOLUTE(__stack16_start);
|
||||
- __stack16_dwords = (__stack16_len + 3) >> 2;
|
||||
+ HIDDEN(__stack16_len = ABSOLUTE(__stack16_end) - ABSOLUTE(__stack16_start));
|
||||
+ HIDDEN(__stack16_dwords = (__stack16_len + 3) >> 2);
|
||||
|
||||
/* Initialized sections */
|
||||
|
||||
. = 0x7c00;
|
||||
.init : {
|
||||
FILL(0x90909090)
|
||||
- __init_start = .;
|
||||
+ HIDDEN(__init_start = .);
|
||||
*(.init)
|
||||
- __init_end = .;
|
||||
+ HIDDEN(__init_end = .);
|
||||
}
|
||||
- __init_len = ABSOLUTE(__init_end) - ABSOLUTE(__init_start);
|
||||
- __init_dwords = (__init_len + 3) >> 2;
|
||||
+ HIDDEN(__init_len = ABSOLUTE(__init_end) - ABSOLUTE(__init_start));
|
||||
+ HIDDEN(__init_dwords = (__init_len + 3) >> 2);
|
||||
|
||||
+ . = ALIGN(4);
|
||||
.text16 : {
|
||||
FILL(0x90909090)
|
||||
- __text16_start = .;
|
||||
+ HIDDEN(__text16_start = .);
|
||||
*(.text16)
|
||||
- __text16_end = .;
|
||||
+ HIDDEN(__text16_end = .);
|
||||
}
|
||||
- __text16_len = ABSOLUTE(__text16_end) - ABSOLUTE(__text16_start);
|
||||
- __text16_dwords = (__text16_len + 3) >> 2;
|
||||
+ HIDDEN(__text16_len = ABSOLUTE(__text16_end) - ABSOLUTE(__text16_start));
|
||||
+ HIDDEN(__text16_dwords = (__text16_len + 3) >> 2);
|
||||
|
||||
/*
|
||||
* .textnr is used for 32-bit code that is used on the code
|
||||
@@ -118,99 +119,92 @@ SECTIONS
|
||||
. = ALIGN(16);
|
||||
.textnr : {
|
||||
FILL(0x90909090)
|
||||
- __textnr_start = .;
|
||||
+ HIDDEN(__textnr_start = .);
|
||||
*(.textnr)
|
||||
- __textnr_end = .;
|
||||
+ HIDDEN(__textnr_end = .);
|
||||
}
|
||||
- __textnr_len = ABSOLUTE(__textnr_end) - ABSOLUTE(__textnr_start);
|
||||
- __textnr_dwords = (__textnr_len + 3) >> 2;
|
||||
+ HIDDEN(__textnr_len = ABSOLUTE(__textnr_end) - ABSOLUTE(__textnr_start));
|
||||
+ HIDDEN(__textnr_dwords = (__textnr_len + 3) >> 2);
|
||||
|
||||
. = ALIGN(16);
|
||||
- __bcopyxx_start = .;
|
||||
+ HIDDEN(__bcopyxx_start = .);
|
||||
|
||||
.bcopyxx.text : {
|
||||
FILL(0x90909090)
|
||||
- __bcopyxx_text_start = .;
|
||||
+ HIDDEN(__bcopyxx_text_start = .);
|
||||
*(.bcopyxx.text)
|
||||
- __bcopyxx_text_end = .;
|
||||
+ HIDDEN(__bcopyxx_text_end = .);
|
||||
}
|
||||
- __bcopyxx_text_len = ABSOLUTE(__bcopyxx_text_end) - ABSOLUTE(__bcopyxx_text_start);
|
||||
- __bcopyxx_text_dwords = (__bcopyxx_text_len + 3) >> 2;
|
||||
+ HIDDEN(__bcopyxx_text_len = ABSOLUTE(__bcopyxx_text_end) - ABSOLUTE(__bcopyxx_text_start));
|
||||
+ HIDDEN(__bcopyxx_text_dwords = (__bcopyxx_text_len + 3) >> 2);
|
||||
|
||||
.bcopyxx.data : {
|
||||
- __bcopyxx_data_start = .;
|
||||
+ HIDDEN(__bcopyxx_data_start = .);
|
||||
*(.bcopyxx.text)
|
||||
- __bcopyxx_data_end = .;
|
||||
+ HIDDEN(__bcopyxx_data_end = .);
|
||||
}
|
||||
- __bcopyxx_data_len = ABSOLUTE(__bcopyxx_data_end) - ABSOLUTE(__bcopyxx_data_start);
|
||||
- __bcopyxx_data_dwords = (__bcopyxx_data_len + 3) >> 2;
|
||||
+ HIDDEN(__bcopyxx_data_len = ABSOLUTE(__bcopyxx_data_end) - ABSOLUTE(__bcopyxx_data_start));
|
||||
+ HIDDEN(__bcopyxx_data_dwords = (__bcopyxx_data_len + 3) >> 2);
|
||||
|
||||
- __bcopyxx_end = .;
|
||||
- __bcopyxx_len = ABSOLUTE(__bcopyxx_end) - ABSOLUTE(__bcopyxx_start);
|
||||
- __bcopyxx_dwords = (__bcopyxx_len + 3) >> 2;
|
||||
+ HIDDEN(__bcopyxx_end = .);
|
||||
+ HIDDEN(__bcopyxx_len = ABSOLUTE(__bcopyxx_end) - ABSOLUTE(__bcopyxx_start));
|
||||
+ HIDDEN(__bcopyxx_dwords = (__bcopyxx_len + 3) >> 2);
|
||||
|
||||
. = ALIGN(4);
|
||||
.data16 : {
|
||||
- __data16_start = .;
|
||||
+ HIDDEN(__data16_start = .);
|
||||
*(.data16)
|
||||
- __data16_end = .;
|
||||
+ HIDDEN(__data16_end = .);
|
||||
}
|
||||
- __data16_len = ABSOLUTE(__data16_end) - ABSOLUTE(__data16_start);
|
||||
- __data16_dwords = (__data16_len + 3) >> 2;
|
||||
+ HIDDEN(__data16_len = ABSOLUTE(__data16_end) - ABSOLUTE(__data16_start));
|
||||
+ HIDDEN(__data16_dwords = (__data16_len + 3) >> 2);
|
||||
|
||||
. = ALIGN(4);
|
||||
- __config_lma = .;
|
||||
+ HIDDEN(__config_lma = ABSOLUTE(.));
|
||||
. += SIZEOF(.config);
|
||||
|
||||
. = ALIGN(4);
|
||||
- __replacestub_lma = .;
|
||||
+ HIDDEN(__replacestub_lma = ABSOLUTE(.));
|
||||
. += SIZEOF(.replacestub);
|
||||
|
||||
/* The 32-bit code loads above the non-progbits sections */
|
||||
|
||||
. = ALIGN(16);
|
||||
- __pm_code_lma = .;
|
||||
+ HIDDEN(__pm_code_lma = ABSOLUTE(.));
|
||||
|
||||
- __high_clear_start = .;
|
||||
+ HIDDEN(__high_clear_start = .);
|
||||
|
||||
. = ALIGN(512);
|
||||
.adv (NOLOAD) : {
|
||||
- __adv_start = .;
|
||||
+ HIDDEN(__adv_start = .);
|
||||
*(.adv)
|
||||
- __adv_end = .;
|
||||
+ HIDDEN(__adv_end = .);
|
||||
}
|
||||
- __adv_len = ABSOLUTE(__adv_end) - ABSOLUTE(__adv_start);
|
||||
- __adv_dwords = (__adv_len + 3) >> 2;
|
||||
+ HIDDEN(__adv_len = ABSOLUTE(__adv_end) - ABSOLUTE(__adv_start));
|
||||
+ HIDDEN(__adv_dwords = (__adv_len + 3) >> 2);
|
||||
|
||||
/* Late uninitialized sections */
|
||||
|
||||
. = ALIGN(4);
|
||||
.uibss (NOLOAD) : {
|
||||
- __uibss_start = .;
|
||||
+ HIDDEN(__uibss_start = .);
|
||||
*(.uibss)
|
||||
- __uibss_end = .;
|
||||
+ HIDDEN(__uibss_end = .);
|
||||
}
|
||||
- __uibss_len = ABSOLUTE(__uibss_end) - ABSOLUTE(__uibss_start);
|
||||
- __uibss_dwords = (__uibss_len + 3) >> 2;
|
||||
+ HIDDEN(__uibss_len = ABSOLUTE(__uibss_end) - ABSOLUTE(__uibss_start));
|
||||
+ HIDDEN(__uibss_dwords = (__uibss_len + 3) >> 2);
|
||||
|
||||
- _end16 = .;
|
||||
- __assert_end16 = ASSERT(_end16 <= 0x10000, "64K overflow");
|
||||
+ HIDDEN(_end16 = .);
|
||||
+ HIDDEN(__assert_end16 = ASSERT(_end16 <= 0x10000, "64K overflow"));
|
||||
|
||||
/*
|
||||
* Special 16-bit segments
|
||||
*/
|
||||
-
|
||||
- . = ALIGN(65536);
|
||||
- .real_mode (NOLOAD) : {
|
||||
- *(.real_mode)
|
||||
- }
|
||||
- real_mode_seg = core_real_mode >> 4;
|
||||
-
|
||||
. = ALIGN(65536);
|
||||
.xfer_buf (NOLOAD) : {
|
||||
*(.xfer_buf)
|
||||
}
|
||||
- xfer_buf_seg = core_xfer_buf >> 4;
|
||||
+ HIDDEN(xfer_buf_seg = core_xfer_buf >> 4);
|
||||
|
||||
/*
|
||||
* The auxilliary data segment is used by the 16-bit code
|
||||
@@ -219,33 +213,33 @@ SECTIONS
|
||||
|
||||
. = ALIGN(16);
|
||||
.auxseg (NOLOAD) : {
|
||||
- __auxseg_start = .;
|
||||
+ HIDDEN(__auxseg_start = .);
|
||||
*(.auxseg)
|
||||
- __auxseg_end = .;
|
||||
+ HIDDEN(__auxseg_end = .);
|
||||
}
|
||||
- __auxseg_len = ABSOLUTE(__auxseg_end) - ABSOLUTE(__auxseg_start);
|
||||
- __auxseg_dwords = (__auxseg_len + 3) >> 2;
|
||||
- aux_seg = __auxseg_start >> 4;
|
||||
+ HIDDEN(__auxseg_len = ABSOLUTE(__auxseg_end) - ABSOLUTE(__auxseg_start));
|
||||
+ HIDDEN(__auxseg_dwords = (__auxseg_len + 3) >> 2);
|
||||
+ HIDDEN(aux_seg = __auxseg_start >> 4);
|
||||
|
||||
/*
|
||||
* Used to allocate lowmem buffers from 32-bit code
|
||||
*/
|
||||
.lowmem (NOLOAD) : {
|
||||
- __lowmem_start = .;
|
||||
+ HIDDEN(__lowmem_start = .);
|
||||
*(.lowmem)
|
||||
- __lowmem_end = .;
|
||||
+ HIDDEN(__lowmem_end = .);
|
||||
}
|
||||
- __lowmem_len = ABSOLUTE(__lowmem_end) - ABSOLUTE(__lowmem_start);
|
||||
- __lowmem_dwords = (__lowmem_len + 3) >> 2;
|
||||
+ HIDDEN(__lowmem_len = ABSOLUTE(__lowmem_end) - ABSOLUTE(__lowmem_start));
|
||||
+ HIDDEN(__lowmem_dwords = (__lowmem_len + 3) >> 2);
|
||||
|
||||
- __high_clear_end = .;
|
||||
+ HIDDEN(__high_clear_end = .);
|
||||
|
||||
- __high_clear_len = ABSOLUTE(__high_clear_end) - ABSOLUTE(__high_clear_start);
|
||||
- __high_clear_dwords = (__high_clear_len + 3) >> 2;
|
||||
+ HIDDEN(__high_clear_len = ABSOLUTE(__high_clear_end) - ABSOLUTE(__high_clear_start));
|
||||
+ HIDDEN(__high_clear_dwords = (__high_clear_len + 3) >> 2);
|
||||
|
||||
/* Start of the lowmem heap */
|
||||
. = ALIGN(16);
|
||||
- __lowmem_heap = .;
|
||||
+ HIDDEN(__lowmem_heap = .);
|
||||
|
||||
/*
|
||||
* 32-bit code. This is a hack for the moment due to the
|
||||
@@ -254,136 +248,137 @@ SECTIONS
|
||||
|
||||
. = 0x100000;
|
||||
|
||||
- __pm_code_start = .;
|
||||
- __vma_to_lma = __pm_code_lma - __pm_code_start;
|
||||
+ HIDDEN(__pm_code_start = .);
|
||||
+ HIDDEN(__vma_to_lma = ABSOLUTE(__pm_code_lma - __pm_code_start));
|
||||
|
||||
.text : AT(ADDR(.text) + __vma_to_lma) {
|
||||
FILL(0x90909090)
|
||||
- __text_start = .;
|
||||
+ HIDDEN(__text_start = .);
|
||||
*(.text)
|
||||
*(.text.*)
|
||||
- __text_end = .;
|
||||
+ HIDDEN(__text_end = .);
|
||||
}
|
||||
|
||||
.rodata : AT(ADDR(.rodata) + __vma_to_lma) {
|
||||
- __rodata_start = .;
|
||||
+ HIDDEN(__rodata_start = .);
|
||||
*(.rodata)
|
||||
*(.rodata.*)
|
||||
- __rodata_end = .;
|
||||
+ HIDDEN(__rodata_end = .);
|
||||
}
|
||||
|
||||
.ctors : AT(ADDR(.ctors) + __vma_to_lma) {
|
||||
- __ctors_start = .;
|
||||
+ HIDDEN(__ctors_start = .);
|
||||
KEEP (*(SORT(.ctors.*)))
|
||||
KEEP (*(.ctors))
|
||||
- __ctors_end = .;
|
||||
+ HIDDEN(__ctors_end = .);
|
||||
}
|
||||
|
||||
.dtors : AT(ADDR(.dtors) + __vma_to_lma) {
|
||||
- __dtors_start = .;
|
||||
+ HIDDEN(__dtors_start = .);
|
||||
KEEP (*(SORT(.dtors.*)))
|
||||
KEEP (*(.dtors))
|
||||
- __dtors_end = .;
|
||||
+ HIDDEN(__dtors_end = .);
|
||||
}
|
||||
|
||||
.dynsym : AT(ADDR(.dynsym) + __vma_to_lma) {
|
||||
- __dynsym_start = .;
|
||||
- *(.dynsym)
|
||||
- __dynsym_end = .;
|
||||
+ HIDDEN(__dynsym_start = .);
|
||||
+ KEEP (*(.dynsym))
|
||||
+ HIDDEN(__dynsym_end = .);
|
||||
}
|
||||
- __dynsym_len = __dynsym_end - __dynsym_start;
|
||||
+ HIDDEN(__dynsym_len = __dynsym_end - __dynsym_start);
|
||||
|
||||
.dynstr : AT(ADDR(.dynstr) + __vma_to_lma) {
|
||||
- __dynstr_start = .;
|
||||
- *(.dynstr)
|
||||
- __dynstr_end = .;
|
||||
+ HIDDEN(__dynstr_start = .);
|
||||
+ KEEP (*(.dynstr))
|
||||
+ HIDDEN(__dynstr_end = .);
|
||||
}
|
||||
- __dynstr_len = __dynstr_end - __dynstr_start;
|
||||
+ HIDDEN(__dynstr_len = __dynstr_end - __dynstr_start);
|
||||
|
||||
.gnu.hash : AT(ADDR(.gnu.hash) + __vma_to_lma) {
|
||||
- __gnu_hash_start = .;
|
||||
- *(.gnu.hash)
|
||||
- __gnu_hash_end = .;
|
||||
+ HIDDEN(__gnu_hash_start = .);
|
||||
+ KEEP (*(.gnu.hash))
|
||||
+ HIDDEN(__gnu_hash_end = .);
|
||||
}
|
||||
|
||||
|
||||
.dynlink : AT(ADDR(.dynlink) + __vma_to_lma) {
|
||||
- __dynlink_start = .;
|
||||
- *(.dynlink)
|
||||
- __dynlink_end = .;
|
||||
+ HIDDEN(__dynlink_start = .);
|
||||
+ KEEP (*(.dynlink))
|
||||
+ HIDDEN(__dynlink_end = .);
|
||||
}
|
||||
|
||||
.got : AT(ADDR(.got) + __vma_to_lma) {
|
||||
- __got_start = .;
|
||||
- KEEP (*(.got.plt))
|
||||
+ HIDDEN(__got_start = .);
|
||||
KEEP (*(.got))
|
||||
- __got_end = .;
|
||||
+ KEEP (*(.got.plt))
|
||||
+ HIDDEN(__got_end = .);
|
||||
}
|
||||
|
||||
.dynamic : AT(ADDR(.dynamic) + __vma_to_lma) {
|
||||
- __dynamic_start = .;
|
||||
- *(.dynamic)
|
||||
- __dynamic_end = .;
|
||||
+ HIDDEN(__dynamic_start = .);
|
||||
+ KEEP (*(.dynamic))
|
||||
+ HIDDEN(__dynamic_end = .);
|
||||
}
|
||||
|
||||
.data : AT(ADDR(.data) + __vma_to_lma) {
|
||||
- __data_start = .;
|
||||
+ HIDDEN(__data_start = .);
|
||||
*(.data)
|
||||
*(.data.*)
|
||||
- __data_end = .;
|
||||
+ HIDDEN(__data_end = .);
|
||||
}
|
||||
|
||||
- __pm_code_end = .;
|
||||
- __pm_code_len = ABSOLUTE(__pm_code_end) - ABSOLUTE(__pm_code_start);
|
||||
- __pm_code_dwords = (__pm_code_len + 3) >> 2;
|
||||
+ HIDDEN(__pm_code_end = .);
|
||||
+ HIDDEN(__pm_code_len = ABSOLUTE(__pm_code_end) - ABSOLUTE(__pm_code_start));
|
||||
+ HIDDEN(__pm_code_dwords = (__pm_code_len + 3) >> 2);
|
||||
|
||||
. = ALIGN(128);
|
||||
|
||||
- __bss_vma = .;
|
||||
- __bss_lma = .; /* Dummy */
|
||||
+ HIDDEN(__bss_vma = .);
|
||||
+ HIDDEN(__bss_lma = ABSOLUTE(.)); /* Dummy */
|
||||
.bss (NOLOAD) : AT (__bss_lma) {
|
||||
- __bss_start = .;
|
||||
+ HIDDEN(__bss_start = .);
|
||||
*(.bss)
|
||||
*(.bss.*)
|
||||
*(COMMON)
|
||||
- __bss_end = .;
|
||||
+ HIDDEN(__bss_end = .);
|
||||
}
|
||||
- __bss_len = ABSOLUTE(__bss_end) - ABSOLUTE(__bss_start);
|
||||
- __bss_dwords = (__bss_len + 3) >> 2;
|
||||
+ HIDDEN(__bss_len = ABSOLUTE(__bss_end) - ABSOLUTE(__bss_start));
|
||||
+ HIDDEN(__bss_dwords = (__bss_len + 3) >> 2);
|
||||
|
||||
/* Very large objects which don't need to be zeroed */
|
||||
|
||||
- __hugebss_vma = .;
|
||||
- __hugebss_lma = .; /* Dummy */
|
||||
+ HIDDEN(__hugebss_vma = .);
|
||||
+ HIDDEN(__hugebss_lma = ABSOLUTE(.)); /* Dummy */
|
||||
.hugebss (NOLOAD) : AT (__hugebss_lma) {
|
||||
- __hugebss_start = .;
|
||||
+ HIDDEN(__hugebss_start = .);
|
||||
*(.hugebss)
|
||||
*(.hugebss.*)
|
||||
- __hugebss_end = .;
|
||||
+ HIDDEN(__hugebss_end = .);
|
||||
}
|
||||
- __hugebss_len = ABSOLUTE(__hugebss_end) - ABSOLUTE(__hugebss_start);
|
||||
- __hugebss_dwords = (__hugebss_len + 3) >> 2;
|
||||
+ HIDDEN(__hugebss_len = ABSOLUTE(__hugebss_end) - ABSOLUTE(__hugebss_start));
|
||||
+ HIDDEN(__hugebss_dwords = (__hugebss_len + 3) >> 2);
|
||||
|
||||
|
||||
/* XXX: This stack should be unified with the COM32 stack */
|
||||
- __stack_vma = .;
|
||||
- __stack_lma = .; /* Dummy */
|
||||
+ HIDDEN(__stack_vma = .);
|
||||
+ HIDDEN(__stack_lma = ABSOLUTE(.)); /* Dummy */
|
||||
.stack (NOLOAD) : AT(__stack_lma) {
|
||||
- __stack_start = .;
|
||||
+ HIDDEN(__stack_start = .);
|
||||
*(.stack)
|
||||
- __stack_end = .;
|
||||
+ HIDDEN(__stack_end = .);
|
||||
}
|
||||
- __stack_len = ABSOLUTE(__stack_end) - ABSOLUTE(__stack_start);
|
||||
- __stack_dwords = (__stack_len + 3) >> 2;
|
||||
+ HIDDEN(__stack_len = ABSOLUTE(__stack_end) - ABSOLUTE(__stack_start));
|
||||
+ HIDDEN(__stack_dwords = (__stack_len + 3) >> 2);
|
||||
|
||||
- _end = .;
|
||||
+ HIDDEN(_end = .);
|
||||
|
||||
/* COM32R and kernels are loaded after our own PM code */
|
||||
. = ALIGN(65536);
|
||||
- free_high_memory = .;
|
||||
+ HIDDEN(free_high_memory = .);
|
||||
|
||||
/* Stuff we don't need... */
|
||||
/DISCARD/ : {
|
||||
*(.eh_frame)
|
||||
+ *(.interp)
|
||||
}
|
||||
}
|
||||
diff --git a/core/layout.inc b/core/layout.inc
|
||||
index 53ca783d..635df537 100644
|
||||
--- a/core/layout.inc
|
||||
+++ b/core/layout.inc
|
||||
@@ -139,17 +139,6 @@ serial_buf_size equ 4096 ; Should be a power of 2
|
||||
core_xfer_buf resb 65536
|
||||
|
||||
;
|
||||
-; Segment for the real mode code (needed as long as we have a in-kernel
|
||||
-; loader and/or COM16 support.
|
||||
-; One symbol for the segment number, one for the absolute address
|
||||
-;
|
||||
- extern real_mode_seg
|
||||
- section .real_mode write nobits align=65536
|
||||
- global core_real_mode:data hidden
|
||||
-core_real_mode resb 65536
|
||||
-comboot_seg equ real_mode_seg ; COMBOOT image loading zone
|
||||
-
|
||||
-;
|
||||
; At the very end, the lowmem heap
|
||||
;
|
||||
extern __lowmem_heap
|
||||
--
|
||||
2.13.3
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
# Architecture
|
||||
BR2_arm=y
|
||||
BR2_arm920t=y
|
||||
|
||||
# Toolchain
|
||||
BR2_PACKAGE_GDB=y
|
||||
BR2_PACKAGE_HOST_GDB=y
|
||||
BR2_ENABLE_LOCALE_PURGE=y
|
||||
BR2_TOOLCHAIN_BUILDROOT_LOCALE=y
|
||||
BR2_TOOLCHAIN_BUILDROOT_CXX=y
|
||||
|
||||
# Linux headers same as kernel, a 3.18 series
|
||||
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_18=y
|
||||
|
||||
# System
|
||||
BR2_TARGET_GENERIC_HOSTNAME="apf9328"
|
||||
BR2_TARGET_GENERIC_ISSUE="Welcome to Armadeus development platform !"
|
||||
BR2_TARGET_GENERIC_GETTY_PORT="ttymxc0"
|
||||
|
||||
# Filesystem
|
||||
BR2_TARGET_ROOTFS_JFFS2=y
|
||||
|
||||
# Kernel
|
||||
BR2_LINUX_KERNEL=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.18.29"
|
||||
BR2_LINUX_KERNEL_DEFCONFIG="imx_v4_v5"
|
||||
BR2_LINUX_KERNEL_UIMAGE=y
|
||||
BR2_LINUX_KERNEL_UIMAGE_LOADADDR="0x08008000"
|
||||
@@ -3,6 +3,7 @@ BR2_cortex_a8=y
|
||||
BR2_GLOBAL_PATCH_DIR="board/beaglebone/patches"
|
||||
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_1=y
|
||||
BR2_TOOLCHAIN_BUILDROOT_GLIBC=y
|
||||
BR2_GCC_VERSION_5_X=y
|
||||
BR2_TOOLCHAIN_BUILDROOT_CXX=y
|
||||
BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
|
||||
BR2_TARGET_GENERIC_GETTY_PORT="ttyO0"
|
||||
|
||||
@@ -13,7 +13,7 @@ BR2_TARGET_GENERIC_GETTY_PORT="ttyS4"
|
||||
BR2_LINUX_KERNEL=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_GIT=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://github.com/MIPS/CI20_linux.git"
|
||||
BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="fbf929bc733b82b15f6996d4262a45870f19d214"
|
||||
BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="7dff33297116643485ca37141d804eddd793e834"
|
||||
BR2_LINUX_KERNEL_DEFCONFIG="ci20"
|
||||
|
||||
# u-boot
|
||||
@@ -22,8 +22,7 @@ BR2_TARGET_UBOOT_BUILD_SYSTEM_LEGACY=y
|
||||
BR2_TARGET_UBOOT_BOARDNAME="ci20_mmc"
|
||||
BR2_TARGET_UBOOT_CUSTOM_GIT=y
|
||||
BR2_TARGET_UBOOT_CUSTOM_REPO_URL="https://github.com/MIPS/CI20_u-boot"
|
||||
BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="a4f583551d0025eb957ee5c9cb68657a429e4914"
|
||||
BR2_TARGET_UBOOT_VERSION="a4f583551d0025eb957ee5c9cb68657a429e4914"
|
||||
BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="dd3c1b95dac7d10b2ca5806f65e5c1050d7dd0fa"
|
||||
BR2_TARGET_UBOOT_FORMAT_IMG=y
|
||||
BR2_TARGET_UBOOT_SPL=y
|
||||
BR2_TARGET_UBOOT_SPL_NAME="spl/u-boot-spl.bin"
|
||||
|
||||
@@ -9,6 +9,9 @@ BR2_ROOTFS_POST_IMAGE_SCRIPT="board/minnowboard/post-image.sh"
|
||||
|
||||
# Linux headers same as kernel, a 4.12 series
|
||||
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_12=y
|
||||
# Needed for grub2
|
||||
BR2_TOOLCHAIN_BUILDROOT_WCHAR=y
|
||||
|
||||
BR2_PACKAGE_HOST_DOSFSTOOLS=y
|
||||
BR2_PACKAGE_HOST_GENIMAGE=y
|
||||
BR2_PACKAGE_HOST_MTOOLS=y
|
||||
|
||||
@@ -17,6 +17,7 @@ BR2_TARGET_UBOOT_CUSTOM_VERSION=y
|
||||
BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2017.07"
|
||||
BR2_TARGET_UBOOT_BOARD_DEFCONFIG="nanopi_m1"
|
||||
BR2_TARGET_UBOOT_NEEDS_DTC=y
|
||||
BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y
|
||||
BR2_TARGET_UBOOT_FORMAT_CUSTOM=y
|
||||
BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot-sunxi-with-spl.bin"
|
||||
|
||||
|
||||
@@ -17,6 +17,7 @@ BR2_TARGET_UBOOT_CUSTOM_VERSION=y
|
||||
BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2017.07"
|
||||
BR2_TARGET_UBOOT_BOARD_DEFCONFIG="nanopi_m1_plus"
|
||||
BR2_TARGET_UBOOT_NEEDS_DTC=y
|
||||
BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y
|
||||
BR2_TARGET_UBOOT_FORMAT_CUSTOM=y
|
||||
BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot-sunxi-with-spl.bin"
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/olimex/a20_olinuxino/genimage.cfg"
|
||||
# Kernel
|
||||
BR2_LINUX_KERNEL=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.9.14"
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.9.36"
|
||||
BR2_LINUX_KERNEL_USE_DEFCONFIG=y
|
||||
BR2_LINUX_KERNEL_DEFCONFIG="sunxi"
|
||||
BR2_LINUX_KERNEL_DTS_SUPPORT=y
|
||||
@@ -34,9 +34,10 @@ BR2_TARGET_ROOTFS_EXT2_4=y
|
||||
BR2_TARGET_UBOOT=y
|
||||
BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
|
||||
BR2_TARGET_UBOOT_CUSTOM_VERSION=y
|
||||
BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2017.03"
|
||||
BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2017.07"
|
||||
BR2_TARGET_UBOOT_BOARD_DEFCONFIG="A20-OLinuXino-Lime"
|
||||
BR2_TARGET_UBOOT_NEEDS_DTC=y
|
||||
BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y
|
||||
BR2_TARGET_UBOOT_FORMAT_BIN=y
|
||||
BR2_TARGET_UBOOT_SPL=y
|
||||
BR2_TARGET_UBOOT_SPL_NAME="u-boot-sunxi-with-spl.bin"
|
||||
|
||||
@@ -41,9 +41,10 @@ BR2_TARGET_ROOTFS_EXT2_4=y
|
||||
BR2_TARGET_UBOOT=y
|
||||
BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
|
||||
BR2_TARGET_UBOOT_CUSTOM_VERSION=y
|
||||
BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2017.03"
|
||||
BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2017.07"
|
||||
BR2_TARGET_UBOOT_BOARD_DEFCONFIG="A20-OLinuXino-Lime"
|
||||
BR2_TARGET_UBOOT_NEEDS_DTC=y
|
||||
BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y
|
||||
BR2_TARGET_UBOOT_FORMAT_BIN=y
|
||||
BR2_TARGET_UBOOT_SPL=y
|
||||
BR2_TARGET_UBOOT_SPL_NAME="u-boot-sunxi-with-spl.bin"
|
||||
|
||||
@@ -15,6 +15,6 @@ BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_11=y
|
||||
# Linux kernel
|
||||
BR2_LINUX_KERNEL=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.11.3"
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.11.12"
|
||||
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/sparc64-sun4u/linux-4.11.config"
|
||||
|
||||
@@ -15,6 +15,6 @@ BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_11=y
|
||||
# Linux kernel
|
||||
BR2_LINUX_KERNEL=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.11.3"
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.11.12"
|
||||
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/sparc-ss10/linux-4.11.config"
|
||||
|
||||
@@ -21,6 +21,7 @@ BR2_TARGET_UBOOT_CUSTOM_GIT=y
|
||||
BR2_TARGET_UBOOT_CUSTOM_REPO_URL="https://github.com/altera-opensource/u-boot-socfpga.git"
|
||||
BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="v2017.07"
|
||||
BR2_TARGET_UBOOT_BOARD_DEFCONFIG="socfpga_socrates"
|
||||
BR2_TARGET_UBOOT_NEEDS_DTC=y
|
||||
BR2_TARGET_UBOOT_FORMAT_IMG=y
|
||||
BR2_TARGET_UBOOT_SPL=y
|
||||
BR2_TARGET_UBOOT_ALTERA_SOCFPGA_IMAGE_CRC=y
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
BR2_arm=y
|
||||
BR2_cortex_a9=y
|
||||
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_14=y
|
||||
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_1=y
|
||||
BR2_TARGET_GENERIC_GETTY_PORT="ttymxc0"
|
||||
BR2_ROOTFS_POST_IMAGE_SCRIPT="board/toradex/apalis-imx6/post-image.sh"
|
||||
BR2_LINUX_KERNEL=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_GIT=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_REPO_URL="git://git.toradex.com/linux-toradex.git"
|
||||
BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="8f237ebe42f2cb911245369276a6b3043c2815f2"
|
||||
BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="3f68dc7c600c0354f5df7f06b931661319addafb"
|
||||
BR2_LINUX_KERNEL_DEFCONFIG="apalis_imx6"
|
||||
BR2_LINUX_KERNEL_DTS_SUPPORT=y
|
||||
BR2_LINUX_KERNEL_INTREE_DTS_NAME="imx6q-apalis-eval imx6q-apalis-ixora imx6q-apalis_v1_0-eval imx6q-apalis_v1_0-ixora"
|
||||
@@ -17,8 +17,9 @@ BR2_TARGET_UBOOT=y
|
||||
BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
|
||||
BR2_TARGET_UBOOT_CUSTOM_GIT=y
|
||||
BR2_TARGET_UBOOT_CUSTOM_REPO_URL="git://git.toradex.com/u-boot-toradex.git"
|
||||
BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="1ef4a29e8cea0239411dde64f9617ad76248fd02"
|
||||
BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="f0e414972b5b225e33ebe75574562266116746f9"
|
||||
BR2_TARGET_UBOOT_BOARD_DEFCONFIG="apalis_imx6"
|
||||
BR2_TARGET_UBOOT_FORMAT_CUSTOM=y
|
||||
BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot.imx"
|
||||
BR2_TARGET_UBOOT_FORMAT_IMG=y
|
||||
BR2_TARGET_UBOOT_SPL=y
|
||||
BR2_TARGET_UBOOT_SPL_NAME="SPL"
|
||||
BR2_PACKAGE_HOST_GENIMAGE=y
|
||||
|
||||
@@ -76,37 +76,37 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3 style="text-align: center;">Latest release candidate: <b>2017.08-rc1</b></h3>
|
||||
<h3 style="text-align: center;">Latest release candidate: <b>2017.08-rc3</b></h3>
|
||||
<div class="row mt centered">
|
||||
<div class="col-sm-6">
|
||||
<div class="flip-container center-block" ontouchstart="this.classList.toggle('hover');">
|
||||
<div class="flipper">
|
||||
<div class="front">
|
||||
<a href="/downloads/buildroot-2017.08-rc1.tar.gz"><img src="images/zip.png" width="180" alt=""></a>
|
||||
<a href="/downloads/buildroot-2017.08-rc3.tar.gz"><img src="images/zip.png" width="180" alt=""></a>
|
||||
</div>
|
||||
<div class="back">
|
||||
<a href="/downloads/buildroot-2017.08-rc1.tar.gz"><img src="images/zip.png" width="180" alt=""></a>
|
||||
<a href="/downloads/buildroot-2017.08-rc3.tar.gz"><img src="images/zip.png" width="180" alt=""></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3><a href="/downloads/buildroot-2017.08-rc1.tar.gz">buildroot-2017.08-rc1.tar.gz</a></h3>
|
||||
<p><a href="/downloads/buildroot-2017.08-rc1.tar.gz.sign">PGP signature</a></p>
|
||||
<h3><a href="/downloads/buildroot-2017.08-rc3.tar.gz">buildroot-2017.08-rc3.tar.gz</a></h3>
|
||||
<p><a href="/downloads/buildroot-2017.08-rc3.tar.gz.sign">PGP signature</a></p>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<div class="flip-container center-block" ontouchstart="this.classList.toggle('hover');">
|
||||
<div class="flipper">
|
||||
<div class="front">
|
||||
<a href="/downloads/buildroot-2017.08-rc1.tar.bz2"><img src="images/package.png" width="180" alt=""></a>
|
||||
<a href="/downloads/buildroot-2017.08-rc3.tar.bz2"><img src="images/package.png" width="180" alt=""></a>
|
||||
</div>
|
||||
<div class="back">
|
||||
<a href="/downloads/buildroot-2017.08-rc1.tar.bz2"><img src="images/package.png" width="180" alt=""></a>
|
||||
<a href="/downloads/buildroot-2017.08-rc3.tar.bz2"><img src="images/package.png" width="180" alt=""></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3><a href="/downloads/buildroot-2017.08-rc1.tar.bz2">buildroot-2017.08-rc1.tar.bz2</a></h3>
|
||||
<p><a href="/downloads/buildroot-2017.08-rc1.tar.bz2.sign">PGP signature</a></p>
|
||||
<h3><a href="/downloads/buildroot-2017.08-rc3.tar.bz2">buildroot-2017.08-rc3.tar.bz2</a></h3>
|
||||
<p><a href="/downloads/buildroot-2017.08-rc3.tar.bz2.sign">PGP signature</a></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -9,6 +9,56 @@
|
||||
<h2>News</h2>
|
||||
<ul class="timeline">
|
||||
|
||||
<li class="timeline-inverted">
|
||||
<div class="timeline-badge"><i class="glyphicon glyphicon-thumbs-up"></i></div>
|
||||
<div class="timeline-panel">
|
||||
<div class="timeline-heading">
|
||||
<h4 class="timeline-title">2017.08-rc3 released</h4>
|
||||
<p><small class="text-muted"><i class="glyphicon glyphicon-time"></i>23 August 2017</small></p>
|
||||
</div>
|
||||
<div class="timeline-body">
|
||||
<p>Another release candidate, on the road to the final 2017.08
|
||||
release. A number of fixes and cleanups in various packages
|
||||
and defconfigs. See
|
||||
the <a href="http://git.buildroot.net/buildroot/plain/CHANGES?id=2017.08-rc3">CHANGES</a>
|
||||
file for details.
|
||||
</p>
|
||||
|
||||
<p>Head to the <a href="/downloads/">downloads page</a> to pick up the
|
||||
<a href="/downloads/buildroot-2017.08-rc3.tar.bz2">2017.08-rc3
|
||||
release candidate</a>, and report any
|
||||
problems found to the
|
||||
<a href="support.html">mailing list</a> or
|
||||
<a href="https://bugs.buildroot.org">bug tracker</a>.</p>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<div class="timeline-badge"><i class="glyphicon glyphicon-thumbs-up"></i></div>
|
||||
<div class="timeline-panel">
|
||||
<div class="timeline-heading">
|
||||
<h4 class="timeline-title">2017.08-rc2 released</h4>
|
||||
<p><small class="text-muted"><i class="glyphicon glyphicon-time"></i>11 August 2017</small></p>
|
||||
</div>
|
||||
<div class="timeline-body">
|
||||
<p>Another release candidate, on the road to the final 2017.08
|
||||
release. A number of fixes and cleanups in various packages
|
||||
and defconfigs. See
|
||||
the <a href="http://git.buildroot.net/buildroot/plain/CHANGES?id=2017.08-rc2">CHANGES</a>
|
||||
file for details.
|
||||
</p>
|
||||
|
||||
<p>Head to the <a href="/downloads/">downloads page</a> to pick up the
|
||||
<a href="/downloads/buildroot-2017.08-rc2.tar.bz2">2017.08-rc2
|
||||
release candidate</a>, and report any
|
||||
problems found to the
|
||||
<a href="support.html">mailing list</a> or
|
||||
<a href="https://bugs.buildroot.org">bug tracker</a>.</p>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li class="timeline-inverted">
|
||||
<div class="timeline-badge"><i class="glyphicon glyphicon-thumbs-up"></i></div>
|
||||
<div class="timeline-panel">
|
||||
|
||||
@@ -40,6 +40,7 @@ define ROOTFS_ISO9660_CREATE_TEMPDIR
|
||||
$(RM) -rf $(ROOTFS_ISO9660_TARGET_DIR)
|
||||
mkdir -p $(ROOTFS_ISO9660_TARGET_DIR)
|
||||
endef
|
||||
ROOTFS_ISO9660_PRE_GEN_HOOKS += ROOTFS_ISO9660_CREATE_TEMPDIR
|
||||
else
|
||||
ROOTFS_ISO9660_TARGET_DIR = $(TARGET_DIR)
|
||||
endif
|
||||
|
||||
+5
-5
@@ -26,10 +26,10 @@ choice
|
||||
prompt "Kernel version"
|
||||
|
||||
config BR2_LINUX_KERNEL_LATEST_VERSION
|
||||
bool "Latest version (4.12.4)"
|
||||
bool "Latest version (4.12.8)"
|
||||
|
||||
config BR2_LINUX_KERNEL_LATEST_CIP_VERSION
|
||||
bool "Latest CIP SLTS version (v4.4.55-cip3)"
|
||||
bool "Latest CIP SLTS version (v4.4.75-cip6)"
|
||||
help
|
||||
CIP launched in the spring of 2016 to address the needs of
|
||||
organizations in industries such as power generation and
|
||||
@@ -116,8 +116,8 @@ endif
|
||||
|
||||
config BR2_LINUX_KERNEL_VERSION
|
||||
string
|
||||
default "4.12.4" if BR2_LINUX_KERNEL_LATEST_VERSION
|
||||
default "v4.4.55-cip3" if BR2_LINUX_KERNEL_LATEST_CIP_VERSION
|
||||
default "4.12.8" if BR2_LINUX_KERNEL_LATEST_VERSION
|
||||
default "v4.4.75-cip6" if BR2_LINUX_KERNEL_LATEST_CIP_VERSION
|
||||
default BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE \
|
||||
if BR2_LINUX_KERNEL_CUSTOM_VERSION
|
||||
default "custom" if BR2_LINUX_KERNEL_CUSTOM_TARBALL
|
||||
@@ -368,7 +368,7 @@ choice
|
||||
default BR2_LINUX_KERNEL_USE_INTREE_DTS
|
||||
|
||||
config BR2_LINUX_KERNEL_USE_INTREE_DTS
|
||||
bool "Use a device tree present in the kernel."
|
||||
bool "Use a device tree present in the kernel"
|
||||
help
|
||||
Use a device tree source distributed with
|
||||
the kernel sources. The dts files are located
|
||||
|
||||
+4
-4
@@ -31,6 +31,10 @@ LINUX_SITE = $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_REPO_URL))
|
||||
LINUX_SITE_METHOD = svn
|
||||
else ifeq ($(BR2_LINUX_KERNEL_LATEST_CIP_VERSION),y)
|
||||
LINUX_SITE = git://git.kernel.org/pub/scm/linux/kernel/git/bwh/linux-cip.git
|
||||
else ifneq ($(findstring -rc,$(LINUX_VERSION)),)
|
||||
# Since 4.12-rc1, -rc kernels are generated from cgit. This also works for
|
||||
# older -rc kernels.
|
||||
LINUX_SITE = https://git.kernel.org/torvalds/t
|
||||
else
|
||||
LINUX_SOURCE = linux-$(LINUX_VERSION).tar.xz
|
||||
# In X.Y.Z, get X and Y. We replace dots and dashes by spaces in order
|
||||
@@ -43,10 +47,6 @@ LINUX_SITE = $(BR2_KERNEL_MIRROR)/linux/kernel/v3.x
|
||||
else ifeq ($(findstring x4.,x$(LINUX_VERSION)),x4.)
|
||||
LINUX_SITE = $(BR2_KERNEL_MIRROR)/linux/kernel/v4.x
|
||||
endif
|
||||
# release candidates are in testing/ subdir
|
||||
ifneq ($(findstring -rc,$(LINUX_VERSION)),)
|
||||
LINUX_SITE := $(LINUX_SITE)/testing
|
||||
endif # -rc
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_LINUX_KERNEL)$(BR2_LINUX_KERNEL_LATEST_VERSION),y)
|
||||
|
||||
+4
-4
@@ -2,11 +2,11 @@ menu "Target packages"
|
||||
|
||||
source "package/busybox/Config.in"
|
||||
source "package/skeleton/Config.in"
|
||||
source "package/skeleton-common/Config.in"
|
||||
source "package/skeleton-custom/Config.in"
|
||||
source "package/skeleton-none/Config.in"
|
||||
source "package/skeleton-systemd/Config.in"
|
||||
source "package/skeleton-sysv/Config.in"
|
||||
source "package/skeleton-init-common/Config.in"
|
||||
source "package/skeleton-init-none/Config.in"
|
||||
source "package/skeleton-init-systemd/Config.in"
|
||||
source "package/skeleton-init-sysv/Config.in"
|
||||
|
||||
menu "Audio and video applications"
|
||||
source "package/alsa-utils/Config.in"
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
From da16e18f03fc63e1206b93d6a719b177d4f4bb99 Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
Date: Fri, 11 Aug 2017 22:33:01 +0200
|
||||
Subject: [PATCH] src/rawmidi/rawmidi_symbols.c: use rawmidi_virt only when
|
||||
available
|
||||
|
||||
src/rawmidi/Makefile.am only brings rawmidi_virt.c into the build when
|
||||
BUILD_SEQ is defined (i.e when --enable-seq is passed). However,
|
||||
rawmidi_symbols.c unconditionally refers to _snd_module_rawmidi_virt,
|
||||
defined in rawmidi_virt.c.
|
||||
|
||||
This causes a link failure when BUILD_SEQ is disabled. For example
|
||||
when linking ffmpeg against alsa-lib:
|
||||
|
||||
/home/thomas/projets/buildroot/output/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libasound.a(pcm_dmix.o): In function `snd_pcm_dmix_sync_ptr':
|
||||
pcm_dmix.c:(.text+0x83c): warning:
|
||||
/home/thomas/projets/buildroot/output/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libasound.a(rawmidi_symbols.o):(.data+0x4): undefined reference to `_snd_module_rawmidi_virt'
|
||||
collect2: error: ld returned 1 exit status
|
||||
|
||||
To fix this, we make sure that rawmidi_symbols.c only uses
|
||||
_snd_module_rawmidi_virt when available.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
|
||||
Patch sent upstream: https://www.spinics.net/lists/alsa-devel/msg65902.html
|
||||
---
|
||||
src/rawmidi/rawmidi_symbols.c | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/src/rawmidi/rawmidi_symbols.c b/src/rawmidi/rawmidi_symbols.c
|
||||
index cdc06d7..6473433 100644
|
||||
--- a/src/rawmidi/rawmidi_symbols.c
|
||||
+++ b/src/rawmidi/rawmidi_symbols.c
|
||||
@@ -21,11 +21,15 @@
|
||||
#ifndef PIC
|
||||
|
||||
extern const char *_snd_module_rawmidi_hw;
|
||||
+#ifdef BUILD_SEQ
|
||||
extern const char *_snd_module_rawmidi_virt;
|
||||
+#endif
|
||||
|
||||
static const char **snd_rawmidi_open_objects[] = {
|
||||
&_snd_module_rawmidi_hw,
|
||||
+#ifdef BUILD_SEQ
|
||||
&_snd_module_rawmidi_virt
|
||||
+#endif
|
||||
};
|
||||
|
||||
void *snd_rawmidi_open_symbols(void)
|
||||
--
|
||||
2.9.4
|
||||
|
||||
@@ -49,7 +49,6 @@ config BR2_PACKAGE_ALSA_UTILS_ALSATPLG
|
||||
config BR2_PACKAGE_ALSA_UTILS_AMIDI
|
||||
bool "amidi"
|
||||
select BR2_PACKAGE_ALSA_LIB_RAWMIDI
|
||||
select BR2_PACKAGE_ALSA_LIB_SEQ
|
||||
|
||||
config BR2_PACKAGE_ALSA_UTILS_AMIXER
|
||||
bool "amixer"
|
||||
|
||||
@@ -24,6 +24,7 @@ BIND_CONF_ENV = \
|
||||
BUILD_CC="$(TARGET_CC)" \
|
||||
BUILD_CFLAGS="$(TARGET_CFLAGS)"
|
||||
BIND_CONF_OPTS = \
|
||||
--without-lmdb \
|
||||
--with-libjson=no \
|
||||
--with-randomdev=/dev/urandom \
|
||||
--enable-epoll \
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
From af3098e05535ddb93bb065770d87738e46089efc Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
Date: Sun, 20 Aug 2017 15:06:01 +0200
|
||||
Subject: [PATCH] Makefile.am: do not overwrite LIBS
|
||||
|
||||
LIBS is meant to be passed on the command line with additional
|
||||
libraries, it should not be overwritten by Makefile.am.
|
||||
|
||||
Instead:
|
||||
|
||||
- Use LDADD to link with external libraries
|
||||
|
||||
- Use <target>_LDFLAGS for additional, non-libraries, linker flags
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
Upstream: https://github.com/dashesy/cc-tool/commit/553f9c601646af0c6e3f6150d0fa3bc63ff56416
|
||||
---
|
||||
Makefile.am | 8 +++-----
|
||||
1 file changed, 3 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/Makefile.am b/Makefile.am
|
||||
index e79e47b..ed83d91 100644
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -10,14 +10,12 @@ AM_LDFLAGS = \
|
||||
|
||||
# $(BOOST_THREADS_LDFLAGS)
|
||||
|
||||
-LDADD = $(LIBUSB_LIBS)
|
||||
-
|
||||
-LIBS = -s \
|
||||
+LDADD = $(LIBUSB_LIBS) \
|
||||
$(BOOST_FILESYSTEM_LIBS) \
|
||||
$(BOOST_REGEX_LIBS) \
|
||||
$(BOOST_SYSTEM_LIBS) \
|
||||
$(BOOST_PROGRAM_OPTIONS_LIBS)
|
||||
-
|
||||
+
|
||||
# $(BOOST_THREADS_LIBS)
|
||||
|
||||
bin_PROGRAMS=cc-tool
|
||||
@@ -30,4 +28,4 @@ cc_tool_SOURCES=src/main.cpp src/application/cc_flasher.cpp src/application/cc_b
|
||||
src/programmer/cc_253x_254x.cpp src/programmer/cc_251x_111x.cpp \
|
||||
src/programmer/cc_243x.cpp src/programmer/cc_programmer.cpp \
|
||||
src/programmer/cc_unit_driver.cpp src/programmer/cc_unit_info.cpp
|
||||
-
|
||||
+cc_tool_LDFLAGS=-s
|
||||
--
|
||||
2.9.4
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
From 5e74a15ce1e093b4d8e83cdade60a43b09d698de Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
Date: Sun, 20 Aug 2017 15:25:06 +0200
|
||||
Subject: [PATCH] m4/boost.m4: fix rpath option check for static linking
|
||||
|
||||
When statically linking, the order in which -l options are passed is
|
||||
important. The contents of the LIBS option passed to the configure
|
||||
environment should be passed *after* other -l options used internally
|
||||
by the package.
|
||||
|
||||
For example, libboost_program_options may used symbols from the
|
||||
libatomic library, and in this case, one need to pass LIBS="-latomic"
|
||||
to cc-tool's configure script. When using dynamic linking, this works
|
||||
fine, because the rpath test does "-latomic
|
||||
-lboost_program_options". However, when statically linking, this
|
||||
doesn't work because libboost_program_options uses symbols from
|
||||
libatomic, so -latomic must be passed *after* -lboost_program_options.
|
||||
|
||||
Therefore, this commit inverts the list of variables used to construct
|
||||
LIBS before doing the _BOOST_AC_LINK_IFELSE() test detecting the rpath
|
||||
option to be used. Indeed, $boost_save_LIBS contains the previously
|
||||
saved LIBS variable, and should be passed after $Boost_lib_LIBS.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
---
|
||||
m4/boost.m4 | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/m4/boost.m4 b/m4/boost.m4
|
||||
index be470a7..f1825ba 100644
|
||||
--- a/m4/boost.m4
|
||||
+++ b/m4/boost.m4
|
||||
@@ -479,7 +479,7 @@ dnl generated only once above (before we start the for loops).
|
||||
*)
|
||||
for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do
|
||||
LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
|
||||
- LIBS="$boost_save_LIBS $Boost_lib_LIBS"
|
||||
+ LIBS="$Boost_lib_LIBS $boost_save_LIBS"
|
||||
_BOOST_AC_LINK_IFELSE([],
|
||||
[boost_rpath_link_ldflag_found=yes
|
||||
break],
|
||||
--
|
||||
2.9.4
|
||||
|
||||
@@ -16,15 +16,16 @@ CC_TOOL_AUTORECONF = YES
|
||||
|
||||
# Configure script "discovers" boost in /usr/local if not given explicitly
|
||||
CC_TOOL_CONF_OPTS = --with-boost=$(STAGING_DIR)/usr
|
||||
CC_TOOL_CONF_ENV = LIBS="$(CC_TOOL_LIBS)"
|
||||
|
||||
# Help boost.m4 find the Boost Regex library, which needs the pthread
|
||||
# library, but isn't detected using a modern (pkg-config) mechanism.
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
CC_TOOL_CONF_ENV += LIBS="-lpthread"
|
||||
CC_TOOL_LIBS += -lpthread
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
||||
CC_TOOL_CONF_ENV += CXXFLAGS="$(TARGET_CXXFLAGS) -latomic"
|
||||
CC_TOOL_LIBS += -latomic
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
From 167042116f523f90911f3a28c4ec065918d56cc9 Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
Date: Tue, 22 Aug 2017 00:02:52 +0200
|
||||
Subject: [PATCH] src/pipe.c: fix build error with gcc 7.x
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
The write function takes a char* as argument, not a char.
|
||||
|
||||
Fixes:
|
||||
|
||||
pipe.cpp: In member function ‘void DBus::Pipe::signal()’:
|
||||
pipe.cpp:86:29: error: invalid conversion from ‘char’ to ‘const void*’ [-fpermissive]
|
||||
::write(_fd_write, '\0', 1);
|
||||
^
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
---
|
||||
src/pipe.cpp | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/pipe.cpp b/src/pipe.cpp
|
||||
index 01211b3..d0572c7 100644
|
||||
--- a/src/pipe.cpp
|
||||
+++ b/src/pipe.cpp
|
||||
@@ -83,5 +83,5 @@ ssize_t Pipe::read(void *buffer, unsigned int &nbytes)
|
||||
void Pipe::signal()
|
||||
{
|
||||
// TODO: ignoring return of read/write generates warning; maybe relevant for eventloop work...
|
||||
- ::write(_fd_write, '\0', 1);
|
||||
+ ::write(_fd_write, "\0", 1);
|
||||
}
|
||||
--
|
||||
2.9.4
|
||||
|
||||
@@ -0,0 +1,78 @@
|
||||
From 1252dc1d1f465b8ab6b36ff7252e395e66a040cf Mon Sep 17 00:00:00 2001
|
||||
From: Simon McVittie <smcv@debian.org>
|
||||
Date: Fri, 21 Jul 2017 10:46:39 +0100
|
||||
Subject: [PATCH 1/2] config-loader-expat: Tell Expat not to defend against
|
||||
hash collisions
|
||||
|
||||
By default, Expat uses cryptographic-quality random numbers as a salt for
|
||||
its hash algorithm, and since 2.2.1 it gets them from the getrandom
|
||||
syscall on Linux. That syscall refuses to return any entropy until the
|
||||
kernel's CSPRNG (random pool) has been initialized. Unfortunately, this
|
||||
can take as long as 40 seconds on embedded devices with few entropy
|
||||
sources, which is too long: if the system dbus-daemon blocks for that
|
||||
length of time, important D-Bus clients like systemd and systemd-logind
|
||||
time out and fail to connect to it.
|
||||
|
||||
We're parsing small configuration files here, and we trust them
|
||||
completely, so we don't need to defend against hash collisions: nobody
|
||||
is going to be crafting them to cause pathological performance.
|
||||
|
||||
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=101858
|
||||
Signed-off-by: Simon McVittie <smcv@debian.org>
|
||||
Tested-by: Christopher Hewitt <hewitt@ieee.org>
|
||||
Reviewed-by: Philip Withnall <withnall@endlessm.com>
|
||||
|
||||
Upstream commit 1252dc1d1f465b8ab6b36ff7252e395e66a040cf
|
||||
Signed-off-by: Marcus Hoffmann <m.hoffmann@cartelsol.com>
|
||||
---
|
||||
bus/config-loader-expat.c | 14 ++++++++++++++
|
||||
configure.ac | 8 ++++++++
|
||||
2 files changed, 22 insertions(+)
|
||||
|
||||
diff --git a/bus/config-loader-expat.c b/bus/config-loader-expat.c
|
||||
index b571fda3..27cbe2d0 100644
|
||||
--- a/bus/config-loader-expat.c
|
||||
+++ b/bus/config-loader-expat.c
|
||||
@@ -203,6 +203,20 @@ bus_config_load (const DBusString *file,
|
||||
goto failed;
|
||||
}
|
||||
|
||||
+ /* We do not need protection against hash collisions (CVE-2012-0876)
|
||||
+ * because we are only parsing trusted XML; and if we let Expat block
|
||||
+ * waiting for the CSPRNG to be initialized, as it does by default to
|
||||
+ * defeat CVE-2012-0876, it can cause timeouts during early boot on
|
||||
+ * entropy-starved embedded devices.
|
||||
+ *
|
||||
+ * TODO: When Expat gets a more explicit API for this than
|
||||
+ * XML_SetHashSalt, check for that too, and use it preferentially.
|
||||
+ * https://github.com/libexpat/libexpat/issues/91 */
|
||||
+#if defined(HAVE_XML_SETHASHSALT)
|
||||
+ /* Any nonzero number will do. https://xkcd.com/221/ */
|
||||
+ XML_SetHashSalt (expat, 4);
|
||||
+#endif
|
||||
+
|
||||
if (!_dbus_string_get_dirname (file, &dirname))
|
||||
{
|
||||
dbus_set_error (error, DBUS_ERROR_NO_MEMORY, NULL);
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 52da11fb..c4022ed7 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -938,6 +938,14 @@ XML_CFLAGS=
|
||||
AC_SUBST([XML_CFLAGS])
|
||||
AC_SUBST([XML_LIBS])
|
||||
|
||||
+save_cflags="$CFLAGS"
|
||||
+save_libs="$LIBS"
|
||||
+CFLAGS="$CFLAGS $XML_CFLAGS"
|
||||
+LIBS="$LIBS $XML_LIBS"
|
||||
+AC_CHECK_FUNCS([XML_SetHashSalt])
|
||||
+CFLAGS="$save_cflags"
|
||||
+LIBS="$save_libs"
|
||||
+
|
||||
# Thread lib detection
|
||||
AC_ARG_VAR([THREAD_LIBS])
|
||||
save_libs="$LIBS"
|
||||
--
|
||||
2.11.0
|
||||
|
||||
@@ -6,6 +6,9 @@
|
||||
|
||||
DBUS_VERSION = 1.10.22
|
||||
DBUS_SITE = https://dbus.freedesktop.org/releases/dbus
|
||||
|
||||
# 0001-config-loader-expat-Tell-Expat-not-to-defend-against.patch
|
||||
DBUS_AUTORECONF = YES
|
||||
DBUS_LICENSE = AFL-2.1 or GPL-2.0+ (library, tools), GPL-2.0+ (tools)
|
||||
DBUS_LICENSE_FILES = COPYING
|
||||
DBUS_INSTALL_STAGING = YES
|
||||
|
||||
@@ -0,0 +1,129 @@
|
||||
From 3fb715b55426875902dfef3056b2cf7335953178 Mon Sep 17 00:00:00 2001
|
||||
From: Mike Frysinger <vapier@gentoo.org>
|
||||
Date: Fri, 19 May 2017 13:25:59 -0400
|
||||
Subject: [PATCH] include sys/sysmacros.h as needed
|
||||
|
||||
The minor/major/makedev macros are not entirely standard. glibc has had
|
||||
the definitions in sys/sysmacros.h since the start, and wants to move away
|
||||
from always defining them implicitly via sys/types.h (as this pollutes the
|
||||
namespace in violation of POSIX). Other C libraries have already dropped
|
||||
them. Since the configure script already checks for this header, use that
|
||||
to pull in the header in files that use these macros.
|
||||
|
||||
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
|
||||
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
|
||||
|
||||
Upstream commit 3fb715b55426875902dfef3056b2cf7335953178
|
||||
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
|
||||
---
|
||||
debugfs/debugfs.c | 3 +++
|
||||
lib/blkid/devname.c | 3 +++
|
||||
lib/blkid/devno.c | 3 +++
|
||||
lib/ext2fs/finddev.c | 3 +++
|
||||
lib/ext2fs/ismounted.c | 3 +++
|
||||
misc/create_inode.c | 4 ++++
|
||||
misc/mk_hugefiles.c | 3 +++
|
||||
7 files changed, 22 insertions(+)
|
||||
|
||||
diff --git a/debugfs/debugfs.c b/debugfs/debugfs.c
|
||||
index 059ddc39..453f5b52 100644
|
||||
--- a/debugfs/debugfs.c
|
||||
+++ b/debugfs/debugfs.c
|
||||
@@ -26,6 +26,9 @@ extern char *optarg;
|
||||
#include <errno.h>
|
||||
#endif
|
||||
#include <fcntl.h>
|
||||
+#ifdef HAVE_SYS_SYSMACROS_H
|
||||
+#include <sys/sysmacros.h>
|
||||
+#endif
|
||||
|
||||
#include "debugfs.h"
|
||||
#include "uuid/uuid.h"
|
||||
diff --git a/lib/blkid/devname.c b/lib/blkid/devname.c
|
||||
index 3e2efa9d..671e781f 100644
|
||||
--- a/lib/blkid/devname.c
|
||||
+++ b/lib/blkid/devname.c
|
||||
@@ -36,6 +36,9 @@
|
||||
#if HAVE_SYS_MKDEV_H
|
||||
#include <sys/mkdev.h>
|
||||
#endif
|
||||
+#ifdef HAVE_SYS_SYSMACROS_H
|
||||
+#include <sys/sysmacros.h>
|
||||
+#endif
|
||||
#include <time.h>
|
||||
|
||||
#include "blkidP.h"
|
||||
diff --git a/lib/blkid/devno.c b/lib/blkid/devno.c
|
||||
index aa6eb907..480030f2 100644
|
||||
--- a/lib/blkid/devno.c
|
||||
+++ b/lib/blkid/devno.c
|
||||
@@ -31,6 +31,9 @@
|
||||
#if HAVE_SYS_MKDEV_H
|
||||
#include <sys/mkdev.h>
|
||||
#endif
|
||||
+#ifdef HAVE_SYS_SYSMACROS_H
|
||||
+#include <sys/sysmacros.h>
|
||||
+#endif
|
||||
|
||||
#include "blkidP.h"
|
||||
|
||||
diff --git a/lib/ext2fs/finddev.c b/lib/ext2fs/finddev.c
|
||||
index 311608de..62fa0dbe 100644
|
||||
--- a/lib/ext2fs/finddev.c
|
||||
+++ b/lib/ext2fs/finddev.c
|
||||
@@ -31,6 +31,9 @@
|
||||
#if HAVE_SYS_MKDEV_H
|
||||
#include <sys/mkdev.h>
|
||||
#endif
|
||||
+#ifdef HAVE_SYS_SYSMACROS_H
|
||||
+#include <sys/sysmacros.h>
|
||||
+#endif
|
||||
|
||||
#include "ext2_fs.h"
|
||||
#include "ext2fs.h"
|
||||
diff --git a/lib/ext2fs/ismounted.c b/lib/ext2fs/ismounted.c
|
||||
index bcac0f15..7d524715 100644
|
||||
--- a/lib/ext2fs/ismounted.c
|
||||
+++ b/lib/ext2fs/ismounted.c
|
||||
@@ -49,6 +49,9 @@
|
||||
#if HAVE_SYS_TYPES_H
|
||||
#include <sys/types.h>
|
||||
#endif
|
||||
+#ifdef HAVE_SYS_SYSMACROS_H
|
||||
+#include <sys/sysmacros.h>
|
||||
+#endif
|
||||
|
||||
#include "ext2_fs.h"
|
||||
#include "ext2fs.h"
|
||||
diff --git a/misc/create_inode.c b/misc/create_inode.c
|
||||
index ae22ff6f..8ce3fafa 100644
|
||||
--- a/misc/create_inode.c
|
||||
+++ b/misc/create_inode.c
|
||||
@@ -22,6 +22,10 @@
|
||||
#include <attr/xattr.h>
|
||||
#endif
|
||||
#include <sys/ioctl.h>
|
||||
+#ifdef HAVE_SYS_SYSMACROS_H
|
||||
+#include <sys/sysmacros.h>
|
||||
+#endif
|
||||
+
|
||||
#include <ext2fs/ext2fs.h>
|
||||
#include <ext2fs/ext2_types.h>
|
||||
#include <ext2fs/fiemap.h>
|
||||
diff --git a/misc/mk_hugefiles.c b/misc/mk_hugefiles.c
|
||||
index 049c6f41..5882394d 100644
|
||||
--- a/misc/mk_hugefiles.c
|
||||
+++ b/misc/mk_hugefiles.c
|
||||
@@ -35,6 +35,9 @@ extern int optind;
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
+#ifdef HAVE_SYS_SYSMACROS_H
|
||||
+#include <sys/sysmacros.h>
|
||||
+#endif
|
||||
#include <libgen.h>
|
||||
#include <limits.h>
|
||||
#include <blkid/blkid.h>
|
||||
--
|
||||
2.13.3
|
||||
|
||||
@@ -0,0 +1,79 @@
|
||||
From b31e9b1bff6832063816b972395179859d1d4619 Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
Date: Sun, 13 Aug 2017 16:03:20 +0200
|
||||
Subject: [PATCH] ld-elf2flt: behave properly when called with a name different
|
||||
from TARGET_ALIAS
|
||||
|
||||
ld-elf2flt currently handles two cases:
|
||||
|
||||
1 It is called as the wrapper for <TARGET_ALIAS>-ld, generally
|
||||
installed in the bin/ directory of a toolchain.
|
||||
|
||||
2 It is called as the wrapper for "ld", generally installed in the
|
||||
TARGET_ALIAS/bin/ directory of a toolchain.
|
||||
|
||||
Unfortunately, if for some reason it gets called using a FOOBAR-ld
|
||||
name that is different from <TARGET_ALIAS>-ld, it assumes it is in
|
||||
case (2), while it really is in case (1). Due to this, the path
|
||||
mangling logic doesn't work, and it doesn't find ld.real.
|
||||
|
||||
This happens for example when the binary program in bin/ is named
|
||||
arm-buildroot-uclinux-uclibcgnueabi-ld, but also has a simpler symlink
|
||||
named arm-linux-ld. In this case,
|
||||
arm-buildroot-uclinux-uclibcgnueabi-ld is recognized by ld-elf2flt as
|
||||
containing TARGET_ALIAS, and therefore the proper logic to find
|
||||
ld.real is applied. However, when arm-linux-ld is used, ld-elf2flt
|
||||
doesn't find TARGET_ALIAS, and therefore assumes we're being called as
|
||||
TARGET_ALIAS/bin/ld.. and searches for a program called ld.real in
|
||||
bin/, which doesn't exist.
|
||||
|
||||
See:
|
||||
|
||||
$ ./output/host/bin/arm-buildroot-uclinux-uclibcgnueabi-ld
|
||||
/home/thomas/buildroot/buildroot/output/host/bin/../arm-buildroot-uclinux-uclibcgnueabi/bin/ld.real: no input files
|
||||
|
||||
$ ./output/host/bin/arm-linux-ld
|
||||
arm-linux-ld (ld-elf2flt): error trying to exec '/home/thomas/buildroot/buildroot/output/host/bin/ld.real': execvp: No such file or directory
|
||||
|
||||
$ ./output/host/arm-buildroot-uclinux-uclibcgnueabi/bin/ld
|
||||
/home/thomas/buildroot/buildroot/output/host/arm-buildroot-uclinux-uclibcgnueabi/bin/ld.real: no input files
|
||||
|
||||
This commit fixes that by inverting the logic: if we're being called
|
||||
as just "ld", then we assume it's the program in
|
||||
TARGET_ALIAS/bin/. Otherwise, we're called through some variant of
|
||||
TARGET-ld.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
Submitted-upstream: https://github.com/uclinux-dev/elf2flt/pull/8
|
||||
---
|
||||
ld-elf2flt.c | 10 +++++-----
|
||||
1 file changed, 5 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/ld-elf2flt.c b/ld-elf2flt.c
|
||||
index de39fe0..c187c2e 100644
|
||||
--- a/ld-elf2flt.c
|
||||
+++ b/ld-elf2flt.c
|
||||
@@ -506,15 +506,15 @@ int main(int argc, char *argv[])
|
||||
the host while those in <TARGET_ALIAS>/lib are for the target.
|
||||
Make bindir point to the bin dir for bin/<TARGET_ALIAS>-foo.
|
||||
Make tooldir point to the bin dir for <TARGET_ALIAS>/bin/foo. */
|
||||
- if (streqn(elf2flt_progname, TARGET_ALIAS)) {
|
||||
- tmp = concat(argv0_dir, "../" TARGET_ALIAS "/bin", NULL);
|
||||
+ if (streqn(elf2flt_progname, "ld")) {
|
||||
+ tmp = concat(argv0_dir, "../../bin", NULL);
|
||||
if (stat(tmp, &buf) == 0 && S_ISDIR(buf.st_mode)) {
|
||||
- tooldir = concat(tmp, "/", NULL);
|
||||
+ bindir = concat(tmp, "/", NULL);
|
||||
}
|
||||
} else {
|
||||
- tmp = concat(argv0_dir, "../../bin", NULL);
|
||||
+ tmp = concat(argv0_dir, "../" TARGET_ALIAS "/bin", NULL);
|
||||
if (stat(tmp, &buf) == 0 && S_ISDIR(buf.st_mode)) {
|
||||
- bindir = concat(tmp, "/", NULL);
|
||||
+ tooldir = concat(tmp, "/", NULL);
|
||||
}
|
||||
}
|
||||
|
||||
--
|
||||
2.9.4
|
||||
|
||||
@@ -9,7 +9,7 @@ ERLANG_P1_XML_SITE = $(call github,processone,fast_xml,$(ERLANG_P1_XML_VERSION))
|
||||
ERLANG_P1_XML_LICENSE = Apache-2.0
|
||||
ERLANG_P1_XML_LICENSE_FILES = LICENSE.txt
|
||||
ERLANG_P1_XML_DEPENDENCIES = expat erlang-p1-utils
|
||||
ERLANG_P1_XML_HOST_DEPENDENCIES = host-expat host-erlang-p1-utils
|
||||
HOST_ERLANG_P1_XML_DEPENDENCIES = host-expat host-erlang-p1-utils
|
||||
ERLANG_P1_XML_INSTALL_STAGING = YES
|
||||
|
||||
ERLANG_P1_XML_USE_AUTOCONF = YES
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
From 6787914efad562e4097a153988109c5c7158abf7 Mon Sep 17 00:00:00 2001
|
||||
From: Baruch Siach <baruch@tkos.co.il>
|
||||
Date: Wed, 16 Aug 2017 13:35:57 +0300
|
||||
Subject: [PATCH] getopt: fix strncmp() declaration
|
||||
|
||||
The strncmp() declaration does not conform with the standard as to the
|
||||
type of the 'n' parameter. Fix this to avoid the following build failure
|
||||
with musl libc:
|
||||
|
||||
n file included from main.c:61:0:
|
||||
getopt.c:175:13: error: conflicting types for 'strncmp'
|
||||
extern int strncmp(const char *s1, const char *s2, unsigned int n);
|
||||
^~~~~~~
|
||||
In file included from main.c:49:0:
|
||||
.../host/x86_64-buildroot-linux-musl/sysroot/usr/include/string.h:38:5: note: previous declaration of 'strncmp' was here
|
||||
int strncmp (const char *, const char *, size_t);
|
||||
^~~~~~~
|
||||
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
|
||||
---
|
||||
Upstream status: https://sourceforge.net/p/faac/bugs/217/
|
||||
|
||||
frontend/getopt.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/frontend/getopt.c b/frontend/getopt.c
|
||||
index 185d49b804dd..40c7a2242551 100644
|
||||
--- a/frontend/getopt.c
|
||||
+++ b/frontend/getopt.c
|
||||
@@ -172,7 +172,7 @@ static enum
|
||||
#if __STDC__ || defined(PROTO)
|
||||
extern char *getenv(const char *name);
|
||||
extern int strcmp (const char *s1, const char *s2);
|
||||
-extern int strncmp(const char *s1, const char *s2, unsigned int n);
|
||||
+extern int strncmp(const char *s1, const char *s2, size_t n);
|
||||
|
||||
static int my_strlen(const char *s);
|
||||
static char *my_index (const char *str, int chr);
|
||||
--
|
||||
2.14.1
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# From http://sourceforge.net/projects/faac/files/faad2-src/faad2-2.7/ (used by upstream):
|
||||
sha1 80eaaa5cc576c35dd28863767b795c50cbcc0511 faad2-2.7.tar.gz
|
||||
# From http://sourceforge.net/projects/faac/files/faad2-src/faad2-2.8.0/ (used by upstream):
|
||||
sha1 a5caa71cd915acd502d96cba56f38296277f2350 faad2-2.8.1.tar.bz2
|
||||
# Locally computed
|
||||
sha256 ee26ed1e177c0cd8fa8458a481b14a0b24ca0b51468c8b4c8b676fd3ceccd330 faad2-2.7.tar.gz
|
||||
sha256 f4042496f6b0a60f5ded6acd11093230044ef8a2fd965360c1bbd5b58780933d faad2-2.8.1.tar.bz2
|
||||
|
||||
@@ -4,10 +4,14 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
FAAD2_VERSION = 2.7
|
||||
FAAD2_SITE = http://downloads.sourceforge.net/project/faac/faad2-src/faad2-$(FAAD2_VERSION)
|
||||
FAAD2_VERSION_MAJOR = 2.8
|
||||
FAAD2_VERSION = $(FAAD2_VERSION_MAJOR).1
|
||||
FAAD2_SITE = http://downloads.sourceforge.net/project/faac/faad2-src/faad2-$(FAAD2_VERSION_MAJOR).0
|
||||
FAAD2_SOURCE = faad2-$(FAAD2_VERSION).tar.bz2
|
||||
FAAD2_LICENSE = GPL-2.0
|
||||
FAAD2_LICENSE_FILES = COPYING
|
||||
# No configure script in upstream tarball
|
||||
FAAD2_AUTORECONF = YES
|
||||
# frontend/faad calls frexp()
|
||||
FAAD2_CONF_ENV = LIBS=-lm
|
||||
FAAD2_INSTALL_STAGING = YES
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
From a853f21633693f9eefc4949660253a5328d2d2f3 Mon Sep 17 00:00:00 2001
|
||||
From: "Yann E. MORIN" <yann.morin.1998@free.fr>
|
||||
Date: Sun, 13 Aug 2017 23:21:54 +0200
|
||||
Subject: [PATCH 1/1] communicate: check return status of msgrcv()
|
||||
|
||||
msgrcv can return with -1 to indicate an error condition.
|
||||
One such error is to have been interrupted by a signal.
|
||||
|
||||
Being interrupted by a signal is very rare in this code, except in a
|
||||
very special condition: a highly-parallel (1000 jobs!) mksquashfs on
|
||||
a filesystem with extended attributes, where we see errors like (those
|
||||
are mksquashfs errors):
|
||||
llistxattr for titi/603/883 failed in read_attrs, because Unknown
|
||||
error 1716527536
|
||||
|
||||
See: https://bugs.busybox.net/show_bug.cgi?id=10141
|
||||
|
||||
In this case, we just have to retry the call to msgrcv().
|
||||
|
||||
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
|
||||
---
|
||||
communicate.c | 5 ++++-
|
||||
1 file changed, 4 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/communicate.c b/communicate.c
|
||||
index 293f404..787bb63 100644
|
||||
--- a/communicate.c
|
||||
+++ b/communicate.c
|
||||
@@ -553,10 +553,13 @@ void send_get_fakem(struct fake_msg *buf)
|
||||
l=msgrcv(msg_get,
|
||||
(struct my_msgbuf*)buf,
|
||||
sizeof(*buf)-sizeof(buf->mtype),0,0);
|
||||
- while((buf->serial!=serial)||buf->pid!=pid);
|
||||
+ while(((l==-1)&&(errno==EINTR))||(buf->serial!=serial)||buf->pid!=pid);
|
||||
|
||||
semaphore_down();
|
||||
|
||||
+ if(l==-1)
|
||||
+ buf->xattr.flags_rc=errno;
|
||||
+
|
||||
/*
|
||||
(nah, may be wrong, due to allignment)
|
||||
|
||||
--
|
||||
2.11.0
|
||||
|
||||
@@ -39,7 +39,7 @@ endif
|
||||
|
||||
define FICL_BUILD_CMDS
|
||||
$(MAKE) -C $(@D) -f Makefile.linux $(TARGET_CONFIGURE_OPTS) \
|
||||
CFLAGS="$(TARGET_CFLAGS) -fPIC -I. -Dlinux" CPPFLAGS="" $(FICL_BUILD_TARGETS)
|
||||
CFLAGS="$(TARGET_CFLAGS) -fgnu89-inline -fPIC -I. -Dlinux" CPPFLAGS="" $(FICL_BUILD_TARGETS)
|
||||
endef
|
||||
|
||||
define FICL_INSTALL_STAGING_CMDS
|
||||
|
||||
@@ -39,7 +39,6 @@ config BR2_GCC_VERSION_4_9_X
|
||||
depends on !(BR2_TOOLCHAIN_USES_MUSL && (BR2_powerpc64 || BR2_powerpc64le))
|
||||
# musl mips64 unsupported
|
||||
depends on !(BR2_TOOLCHAIN_USES_MUSL && (BR2_mips64 || BR2_mips64el))
|
||||
# PR60102 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60102
|
||||
select BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
|
||||
|
||||
config BR2_GCC_VERSION_5_X
|
||||
@@ -93,7 +92,7 @@ config BR2_GCC_VERSION
|
||||
default "4.9.4" if BR2_GCC_VERSION_4_9_X
|
||||
default "5.4.0" if BR2_GCC_VERSION_5_X
|
||||
default "6.4.0" if BR2_GCC_VERSION_6_X
|
||||
default "7.1.0" if BR2_GCC_VERSION_7_X
|
||||
default "7.2.0" if BR2_GCC_VERSION_7_X
|
||||
default "arc-2017.03" if BR2_GCC_VERSION_ARC
|
||||
default "musl-5.4.0" if BR2_GCC_VERSION_OR1K
|
||||
|
||||
|
||||
@@ -78,6 +78,11 @@ ifeq ($(BR2_bfin),y)
|
||||
HOST_GCC_FINAL_CONF_OPTS += --disable-symvers
|
||||
endif
|
||||
|
||||
# libcilkrts does not support v8
|
||||
ifeq ($(BR2_sparc),y)
|
||||
HOST_GCC_FINAL_CONF_OPTS += --disable-libcilkrts
|
||||
endif
|
||||
|
||||
# Disable shared libs like libstdc++ if we do static since it confuses linking
|
||||
# In that case also disable libcilkrts as there is no static version
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
|
||||
@@ -4,8 +4,8 @@ sha512 93abb78e16277454f41a8e9810f41f66c0fdffdc539a762ff6b67d3037f78db971378683
|
||||
sha512 2941cc950c8f2409a314df497631f9b0266211aa74746c1839c46e04f1c7c299afe2528d1ef16ea39def408a644ba48f97519ec7a7dd37d260c3e9423514265b gcc-5.4.0.tar.bz2
|
||||
# From ftp://gcc.gnu.org/pub/gcc/releases/gcc-6.4.0/sha512.sum
|
||||
sha512 02c60e54527c7adf584798d5251f8a0b80c93d5deafce82501b2c28e6692e0bd783927bbfc4bc527a863c0cccc025150a34740a9e29badb02d4b48e56a8aba90 gcc-6.4.0.tar.xz
|
||||
# From ftp://gcc.gnu.org/pub/gcc/releases/gcc-7.1.0/sha512.sum
|
||||
sha512 b5d952be9a10f0e0926bb2868877d10544039d6d2f35ba0a08f51231dd622a007650764a03e173194701467547789ad7d2d9cbc10adcdf118d619cdedbd14aec gcc-7.1.0.tar.bz2
|
||||
# From ftp://gcc.gnu.org/pub/gcc/releases/gcc-7.2.0/sha512.sum
|
||||
sha512 f853cd6530b4055d8d8289da74687cb4c6d5f363598d386332d31852b581bac76c3adb7d61889edec3b779f63d8646f0122840f12965ce4a4389ba535dbbb6e1 gcc-7.2.0.tar.xz
|
||||
|
||||
# Locally calculated (fetched from Github)
|
||||
sha512 282f76b8b63372f5b4426092b80d36da96cd0bda2a8588405b9ec22806c69fafb696b0e0df65bc36c3c3aa8ce5befc24246fd5c6ddb21dcde01f45f7b11ff7c4 gcc-arc-2017.03.tar.gz
|
||||
|
||||
+3
-3
@@ -18,9 +18,9 @@ GCC_SITE = $(call github,openrisc,or1k-gcc,$(GCC_VERSION))
|
||||
GCC_SOURCE = gcc-$(GCC_VERSION).tar.gz
|
||||
else
|
||||
GCC_SITE = $(BR2_GNU_MIRROR:/=)/gcc/gcc-$(GCC_VERSION)
|
||||
# From version 6.4.0 a bz2 release tarball is not provided anymore. Use the xz
|
||||
# tarball instead.
|
||||
ifeq ($(BR2_GCC_VERSION_6_X),y)
|
||||
# From version 6.4.0 and 7.2.0 a bz2 release tarball is not provided
|
||||
# anymore. Use the xz tarball instead.
|
||||
ifeq ($(BR2_GCC_VERSION_6_X)$(BR2_GCC_VERSION_7_X),y)
|
||||
GCC_SOURCE = gcc-$(GCC_VERSION).tar.xz
|
||||
else
|
||||
GCC_SOURCE = gcc-$(GCC_VERSION).tar.bz2
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
From 09a2c3e0164545324a1ddee70f5c9fdee71e2079 Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
Date: Sun, 18 Jun 2017 23:09:43 +0200
|
||||
Subject: [PATCH] nat/linux-ptrace.c: add missing gdb_byte* cast
|
||||
|
||||
On noMMU platforms, the following code gets compiled:
|
||||
|
||||
child_stack = xmalloc (STACK_SIZE * 4);
|
||||
|
||||
Where child_stack is a gdb_byte*, and xmalloc() returns a void*. While
|
||||
the lack of cast is valid in C, it is not in C++, causing the
|
||||
following build failure:
|
||||
|
||||
../nat/linux-ptrace.c: In function 'int linux_fork_to_function(gdb_byte*, int (*)(void*))':
|
||||
../nat/linux-ptrace.c:273:29: error: invalid conversion from 'void*' to 'gdb_byte* {aka unsigned char*}' [-fpermissive]
|
||||
child_stack = xmalloc (STACK_SIZE * 4);
|
||||
|
||||
Therefore, this commit adds the appropriate cast.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
[Upstream commit: ffce45d2243e5f52f411e314fc4e1a69f431a81f]
|
||||
---
|
||||
gdb/nat/linux-ptrace.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/gdb/nat/linux-ptrace.c b/gdb/nat/linux-ptrace.c
|
||||
index 3447e07..33833e2 100644
|
||||
--- a/gdb/nat/linux-ptrace.c
|
||||
+++ b/gdb/nat/linux-ptrace.c
|
||||
@@ -270,7 +270,7 @@ linux_fork_to_function (gdb_byte *child_stack, int (*function) (void *))
|
||||
#define STACK_SIZE 4096
|
||||
|
||||
if (child_stack == NULL)
|
||||
- child_stack = xmalloc (STACK_SIZE * 4);
|
||||
+ child_stack = (gdb_byte*) xmalloc (STACK_SIZE * 4);
|
||||
|
||||
/* Use CLONE_VM instead of fork, to support uClinux (no MMU). */
|
||||
#ifdef __ia64__
|
||||
--
|
||||
2.9.4
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
From 09a2c3e0164545324a1ddee70f5c9fdee71e2079 Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
Date: Sun, 18 Jun 2017 23:09:43 +0200
|
||||
Subject: [PATCH] nat/linux-ptrace.c: add missing gdb_byte* cast
|
||||
|
||||
On noMMU platforms, the following code gets compiled:
|
||||
|
||||
child_stack = xmalloc (STACK_SIZE * 4);
|
||||
|
||||
Where child_stack is a gdb_byte*, and xmalloc() returns a void*. While
|
||||
the lack of cast is valid in C, it is not in C++, causing the
|
||||
following build failure:
|
||||
|
||||
../nat/linux-ptrace.c: In function 'int linux_fork_to_function(gdb_byte*, int (*)(void*))':
|
||||
../nat/linux-ptrace.c:273:29: error: invalid conversion from 'void*' to 'gdb_byte* {aka unsigned char*}' [-fpermissive]
|
||||
child_stack = xmalloc (STACK_SIZE * 4);
|
||||
|
||||
Therefore, this commit adds the appropriate cast.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
[Upstream commit: ffce45d2243e5f52f411e314fc4e1a69f431a81f]
|
||||
---
|
||||
gdb/nat/linux-ptrace.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/gdb/nat/linux-ptrace.c b/gdb/nat/linux-ptrace.c
|
||||
index 3447e07..33833e2 100644
|
||||
--- a/gdb/nat/linux-ptrace.c
|
||||
+++ b/gdb/nat/linux-ptrace.c
|
||||
@@ -270,7 +270,7 @@ linux_fork_to_function (gdb_byte *child_stack, int (*function) (void *))
|
||||
#define STACK_SIZE 4096
|
||||
|
||||
if (child_stack == NULL)
|
||||
- child_stack = xmalloc (STACK_SIZE * 4);
|
||||
+ child_stack = (gdb_byte*) xmalloc (STACK_SIZE * 4);
|
||||
|
||||
/* Use CLONE_VM instead of fork, to support uClinux (no MMU). */
|
||||
#ifdef __ia64__
|
||||
--
|
||||
2.9.4
|
||||
|
||||
@@ -3,6 +3,7 @@ config BR2_PACKAGE_GDB_ARCH_SUPPORTS
|
||||
default y
|
||||
depends on !((BR2_arm || BR2_armeb) && BR2_BINFMT_FLAT)
|
||||
depends on !BR2_bfin
|
||||
depends on !BR2_microblaze
|
||||
depends on !BR2_nios2
|
||||
depends on !BR2_or1k
|
||||
|
||||
@@ -47,11 +48,11 @@ config BR2_PACKAGE_GDB_SERVER
|
||||
config BR2_PACKAGE_GDB_DEBUGGER
|
||||
bool "full debugger"
|
||||
depends on BR2_USE_WCHAR
|
||||
depends on !BR2_sh && !BR2_microblaze
|
||||
depends on !BR2_sh
|
||||
select BR2_PACKAGE_NCURSES
|
||||
|
||||
comment "full gdb on target needs a toolchain w/ wchar"
|
||||
depends on !BR2_sh && !BR2_microblaze
|
||||
depends on !BR2_sh
|
||||
depends on !BR2_USE_WCHAR
|
||||
|
||||
if BR2_PACKAGE_GDB_DEBUGGER
|
||||
|
||||
@@ -7,6 +7,7 @@ config BR2_PACKAGE_HOST_GDB
|
||||
# toolchain should be used.
|
||||
depends on !BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY
|
||||
depends on !((BR2_arm || BR2_armeb) && BR2_BINFMT_FLAT)
|
||||
depends on !BR2_microblaze
|
||||
depends on !BR2_nios2
|
||||
depends on !BR2_or1k
|
||||
help
|
||||
@@ -29,7 +30,7 @@ config BR2_PACKAGE_HOST_GDB_PYTHON
|
||||
|
||||
config BR2_PACKAGE_HOST_GDB_SIM
|
||||
bool "Simulator support"
|
||||
depends on !BR2_arc && !BR2_microblaze
|
||||
depends on !BR2_arc
|
||||
help
|
||||
This option enables the simulator support in the cross gdb.
|
||||
|
||||
@@ -37,7 +38,6 @@ choice
|
||||
prompt "GDB debugger Version"
|
||||
default BR2_GDB_VERSION_7_11
|
||||
depends on !BR2_arc
|
||||
depends on !BR2_microblaze
|
||||
help
|
||||
Select the version of gdb you wish to use.
|
||||
|
||||
@@ -65,7 +65,6 @@ endif
|
||||
config BR2_GDB_VERSION
|
||||
string
|
||||
default "arc-2017.03-gdb" if BR2_arc
|
||||
default "6be65fb56ea6694a9260733a536a023a1e2d4d57" if BR2_microblaze
|
||||
default "7.10.1" if BR2_GDB_VERSION_7_10
|
||||
default "7.11.1" if BR2_GDB_VERSION_7_11 || !BR2_PACKAGE_HOST_GDB
|
||||
default "7.12.1" if BR2_GDB_VERSION_7_12
|
||||
|
||||
@@ -5,5 +5,4 @@ sha512 0ac8d0a495103611ef41167a08313a010dce6ca4c6d827cbe8558a0c1a1a8a6bfa53f1b7
|
||||
sha512 e4044bdd162cbf95044ec1eaa44d2fa62a33e051bdbbacbc97afd4dfb07bae1bea514381fc1966aede89d6796ef2377a15748a93d95e2ad494c8497db489e886 gdb-8.0.tar.xz
|
||||
|
||||
# Locally calculated (fetched from Github)
|
||||
sha512 0a467091d4b01fbecabb4b8da1cb743025c70e7f4874a0b5c8fa2ec623569a39bde6762b91806de0be6e63711aeb6909715cfbe43860de73d8aec6159a9f10a7 gdb-6be65fb56ea6694a9260733a536a023a1e2d4d57.tar.gz
|
||||
sha512 8ec849a5ea1c16f104c51c4813c35ab229e460eef0025967673b87316f62b5171f05448cda018464914d43d2da50b2902eb7f9f060d0af1368a9db111f959668 gdb-arc-2017.03-gdb.tar.gz
|
||||
|
||||
@@ -14,12 +14,6 @@ GDB_SOURCE = gdb-$(GDB_VERSION).tar.gz
|
||||
GDB_FROM_GIT = y
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_microblaze),y)
|
||||
GDB_SITE = $(call github,Xilinx,gdb,$(GDB_VERSION))
|
||||
GDB_SOURCE = gdb-$(GDB_VERSION).tar.gz
|
||||
GDB_FROM_GIT = y
|
||||
endif
|
||||
|
||||
GDB_LICENSE = GPL-2.0+, LGPL-2.0+, GPL-3.0+, LGPL-3.0+
|
||||
GDB_LICENSE_FILES = COPYING COPYING.LIB COPYING3 COPYING3.LIB
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# From: https://www.kernel.org/pub/software/scm/git/sha256sums.asc
|
||||
sha256 91aa23be428f67eb19616f43fa0229d567e9acf4f08fba33eb0b627e4d323e62 git-2.13.3.tar.xz
|
||||
sha256 21c9e29caac86d244ac7af78bc3422746dabb903cb3952a1ceefd801020ad1a1 git-2.13.5.tar.xz
|
||||
sha256 5b2198d1645f767585e8a88ac0499b04472164c0d2da22e75ecf97ef443ab32e COPYING
|
||||
sha256 1922f45d2c49e390032c9c0ba6d7cac904087f7cec51af30c2b2ad022ce0e76a LGPL-2.1
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
GIT_VERSION = 2.13.3
|
||||
GIT_VERSION = 2.13.5
|
||||
GIT_SOURCE = git-$(GIT_VERSION).tar.xz
|
||||
GIT_SITE = $(BR2_KERNEL_MIRROR)/software/scm/git
|
||||
GIT_LICENSE = GPL-2.0, LGPL-2.1+
|
||||
|
||||
@@ -0,0 +1,65 @@
|
||||
From: H.J. Lu <hjl.tools@gmail.com>
|
||||
Date: Fri, 23 Jun 2017 21:38:46 +0000 (-0700)
|
||||
Subject: Avoid .symver on common symbols [BZ #21666]
|
||||
X-Git-Tag: glibc-2.26~241
|
||||
X-Git-Url: https://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff_plain;h=388b4f1a02f3a801965028bbfcd48d905638b797
|
||||
|
||||
Avoid .symver on common symbols [BZ #21666]
|
||||
|
||||
The .symver directive on common symbol just creates a new common symbol,
|
||||
not an alias and the newer assembler with the bug fix for
|
||||
|
||||
https://sourceware.org/bugzilla/show_bug.cgi?id=21661
|
||||
|
||||
will issue an error. Before the fix, we got
|
||||
|
||||
$ readelf -sW libc.so | grep "loc[12s]"
|
||||
5109: 00000000003a0608 8 OBJECT LOCAL DEFAULT 36 loc1
|
||||
5188: 00000000003a0610 8 OBJECT LOCAL DEFAULT 36 loc2
|
||||
5455: 00000000003a0618 8 OBJECT LOCAL DEFAULT 36 locs
|
||||
6575: 00000000003a05f0 8 OBJECT GLOBAL DEFAULT 36 locs@GLIBC_2.2.5
|
||||
7156: 00000000003a05f8 8 OBJECT GLOBAL DEFAULT 36 loc1@GLIBC_2.2.5
|
||||
7312: 00000000003a0600 8 OBJECT GLOBAL DEFAULT 36 loc2@GLIBC_2.2.5
|
||||
|
||||
in libc.so. The versioned loc1, loc2 and locs have the wrong addresses.
|
||||
After the fix, we got
|
||||
|
||||
$ readelf -sW libc.so | grep "loc[12s]"
|
||||
6570: 000000000039e3b8 8 OBJECT GLOBAL DEFAULT 34 locs@GLIBC_2.2.5
|
||||
7151: 000000000039e3c8 8 OBJECT GLOBAL DEFAULT 34 loc1@GLIBC_2.2.5
|
||||
7307: 000000000039e3c0 8 OBJECT GLOBAL DEFAULT 34 loc2@GLIBC_2.2.5
|
||||
|
||||
[BZ #21666]
|
||||
* misc/regexp.c (loc1): Add __attribute__ ((nocommon));
|
||||
(loc2): Likewise.
|
||||
(locs): Likewise.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
[Backported from upstream commit
|
||||
388b4f1a02f3a801965028bbfcd48d905638b797, to fix the build with
|
||||
binutils 2.29.]
|
||||
---
|
||||
diff --git a/misc/regexp.c b/misc/regexp.c
|
||||
index 19d76c0..eaea7c3 100644
|
||||
--- a/misc/regexp.c
|
||||
+++ b/misc/regexp.c
|
||||
@@ -29,14 +29,15 @@
|
||||
|
||||
#if SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_23)
|
||||
|
||||
-/* Define the variables used for the interface. */
|
||||
-char *loc1;
|
||||
-char *loc2;
|
||||
+/* Define the variables used for the interface. Avoid .symver on common
|
||||
+ symbol, which just creates a new common symbol, not an alias. */
|
||||
+char *loc1 __attribute__ ((nocommon));
|
||||
+char *loc2 __attribute__ ((nocommon));
|
||||
compat_symbol (libc, loc1, loc1, GLIBC_2_0);
|
||||
compat_symbol (libc, loc2, loc2, GLIBC_2_0);
|
||||
|
||||
/* Although we do not support the use we define this variable as well. */
|
||||
-char *locs;
|
||||
+char *locs __attribute__ ((nocommon));
|
||||
compat_symbol (libc, locs, locs, GLIBC_2_0);
|
||||
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
From patchwork Wed Jun 14 06:19:50 2017
|
||||
Content-Type: text/plain; charset="utf-8"
|
||||
MIME-Version: 1.0
|
||||
Content-Transfer-Encoding: 7bit
|
||||
Subject: i686: Add missing IS_IN (libc) guards to vectorized strcspn
|
||||
From: Florian Weimer <fweimer@redhat.com>
|
||||
X-Patchwork-Id: 21003
|
||||
Message-Id: <20170614061950.400FE4010728F@oldenburg.str.redhat.com>
|
||||
To: libc-alpha@sourceware.org
|
||||
Date: Wed, 14 Jun 2017 08:19:50 +0200
|
||||
|
||||
Since commit d957c4d3fa48d685ff2726c605c988127ef99395 (i386: Compile
|
||||
rtld-*.os with -mno-sse -mno-mmx -mfpmath=387), vector intrinsics can
|
||||
no longer be used in ld.so, even if the compiled code never makes it
|
||||
into the final ld.so link. This commit adds the missing IS_IN (libc)
|
||||
guard to the SSE 4.2 strcspn implementation, so that it can be used from
|
||||
ld.so in the future.
|
||||
|
||||
2017-06-14 Florian Weimer <fweimer@redhat.com>
|
||||
|
||||
* sysdeps/i386/i686/multiarch/strcspn-c.c: Add IS_IN (libc) guard.
|
||||
* sysdeps/i386/i686/multiarch/varshift.c: Likewise.
|
||||
|
||||
[Thomas: fixes a build issue of glibc on x86:
|
||||
sysdeps/x86_64/multiarch/varshift.h:26:1: error: SSE vector return without SSE enabled changes the ABI]
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
|
||||
diff --git a/sysdeps/i386/i686/multiarch/strcspn-c.c b/sysdeps/i386/i686/multiarch/strcspn-c.c
|
||||
index 6d61e19..ec230fb 100644
|
||||
--- a/sysdeps/i386/i686/multiarch/strcspn-c.c
|
||||
+++ b/sysdeps/i386/i686/multiarch/strcspn-c.c
|
||||
@@ -1,2 +1,4 @@
|
||||
-#define __strcspn_sse2 __strcspn_ia32
|
||||
-#include <sysdeps/x86_64/multiarch/strcspn-c.c>
|
||||
+#if IS_IN (libc)
|
||||
+# define __strcspn_sse2 __strcspn_ia32
|
||||
+# include <sysdeps/x86_64/multiarch/strcspn-c.c>
|
||||
+#endif
|
||||
diff --git a/sysdeps/i386/i686/multiarch/varshift.c b/sysdeps/i386/i686/multiarch/varshift.c
|
||||
index 7760b96..6742a35 100644
|
||||
--- a/sysdeps/i386/i686/multiarch/varshift.c
|
||||
+++ b/sysdeps/i386/i686/multiarch/varshift.c
|
||||
@@ -1 +1,3 @@
|
||||
-#include <sysdeps/x86_64/multiarch/varshift.c>
|
||||
+#if IS_IN (libc)
|
||||
+# include <sysdeps/x86_64/multiarch/varshift.c>
|
||||
+#endif
|
||||
@@ -0,0 +1,318 @@
|
||||
commit db3d848e154b00071f4a5e729d5884efad410109
|
||||
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
|
||||
Date: Wed Mar 15 15:44:59 2017 -0300
|
||||
|
||||
Build divdi3 only for architecture that required it
|
||||
|
||||
As noted in [1], divdi3 object is only exported in a handful ABIs
|
||||
(i386, m68k, powerpc32, s390-32, and ia64), however it is built
|
||||
for all current architectures regardless.
|
||||
|
||||
This patch refact the make rules for this object to so only the
|
||||
aforementioned architectures that actually require it builds it.
|
||||
|
||||
Also, to avoid internal PLT calls to the exported symbol from the
|
||||
module, glibc uses an internal header (symbol-hacks.h) which is
|
||||
unrequired (and in fact breaks the build for architectures that
|
||||
intend to get symbol definitions from libgcc.a). The patch also
|
||||
changes it to create its own header (divdi3-symbol-hacks.h) and
|
||||
adjust the architectures that require it accordingly.
|
||||
|
||||
I checked the build/check (with run-built-tests=no) on the
|
||||
following architectures (which I think must cover all supported
|
||||
ABI/builds) using GCC 6.3:
|
||||
|
||||
aarch64-linux-gnu
|
||||
alpha-linux-gnu
|
||||
arm-linux-gnueabihf
|
||||
hppa-linux-gnu
|
||||
ia64-linux-gnu
|
||||
m68k-linux-gnu
|
||||
microblaze-linux-gnu
|
||||
mips64-n32-linux-gnu
|
||||
mips-linux-gnu
|
||||
mips64-linux-gnu
|
||||
nios2-linux-gnu
|
||||
powerpc-linux-gnu
|
||||
powerpc-linux-gnu-power4
|
||||
powerpc64-linux-gnu
|
||||
powerpc64le-linux-gnu
|
||||
s390x-linux-gnu
|
||||
s390-linux-gnu
|
||||
sh4-linux-gnu
|
||||
sh4-linux-gnu-soft
|
||||
sparc64-linux-gnu
|
||||
sparcv9-linux-gnu
|
||||
tilegx-linux-gnu
|
||||
tilegx-linux-gnu-32
|
||||
tilepro-linux-gnu
|
||||
x86_64-linux-gnu
|
||||
x86_64-linux-gnu-x32
|
||||
i686-linux-gnu
|
||||
|
||||
I only saw one regression on sparcv9-linux-gnu (extra PLT call to
|
||||
.udiv) which I address in next patch in the set. It also correctly
|
||||
build SH with GCC 7.0.1 (without any regression from c89721e25d).
|
||||
|
||||
[1] https://sourceware.org/ml/libc-alpha/2017-03/msg00243.html
|
||||
|
||||
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
|
||||
|
||||
diff --git a/sysdeps/i386/symbol-hacks.h b/sysdeps/i386/symbol-hacks.h
|
||||
new file mode 100644
|
||||
index 0000000000..36a13c83f7
|
||||
--- /dev/null
|
||||
+++ b/sysdeps/i386/symbol-hacks.h
|
||||
@@ -0,0 +1,21 @@
|
||||
+/* Hacks needed for symbol manipulation. i386 version.
|
||||
+ Copyright (C) 2017 Free Software Foundation, Inc.
|
||||
+ This file is part of the GNU C Library.
|
||||
+
|
||||
+ The GNU C Library is free software; you can redistribute it and/or
|
||||
+ modify it under the terms of the GNU Lesser General Public
|
||||
+ License as published by the Free Software Foundation; either
|
||||
+ version 2.1 of the License, or (at your option) any later version.
|
||||
+
|
||||
+ The GNU C Library is distributed in the hope that it will be useful,
|
||||
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
+ Lesser General Public License for more details.
|
||||
+
|
||||
+ You should have received a copy of the GNU Lesser General Public
|
||||
+ License along with the GNU C Library; if not, see
|
||||
+ <http://www.gnu.org/licenses/>. */
|
||||
+
|
||||
+#include <sysdeps/wordsize-32/divdi3-symbol-hacks.h>
|
||||
+
|
||||
+#include_next "symbol-hacks.h"
|
||||
diff --git a/sysdeps/m68k/symbol-hacks.h b/sysdeps/m68k/symbol-hacks.h
|
||||
new file mode 100644
|
||||
index 0000000000..e449d29810
|
||||
--- /dev/null
|
||||
+++ b/sysdeps/m68k/symbol-hacks.h
|
||||
@@ -0,0 +1,21 @@
|
||||
+/* Hacks needed for symbol manipulation. m68k version.
|
||||
+ Copyright (C) 2017 Free Software Foundation, Inc.
|
||||
+ This file is part of the GNU C Library.
|
||||
+
|
||||
+ The GNU C Library is free software; you can redistribute it and/or
|
||||
+ modify it under the terms of the GNU Lesser General Public
|
||||
+ License as published by the Free Software Foundation; either
|
||||
+ version 2.1 of the License, or (at your option) any later version.
|
||||
+
|
||||
+ The GNU C Library is distributed in the hope that it will be useful,
|
||||
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
+ Lesser General Public License for more details.
|
||||
+
|
||||
+ You should have received a copy of the GNU Lesser General Public
|
||||
+ License along with the GNU C Library; if not, see
|
||||
+ <http://www.gnu.org/licenses/>. */
|
||||
+
|
||||
+#include <sysdeps/wordsize-32/divdi3-symbol-hacks.h>
|
||||
+
|
||||
+#include_next "symbol-hacks.h"
|
||||
diff --git a/sysdeps/powerpc/powerpc32/symbol-hacks.h b/sysdeps/powerpc/powerpc32/symbol-hacks.h
|
||||
new file mode 100644
|
||||
index 0000000000..dbb3141621
|
||||
--- /dev/null
|
||||
+++ b/sysdeps/powerpc/powerpc32/symbol-hacks.h
|
||||
@@ -0,0 +1,21 @@
|
||||
+/* Hacks needed for symbol manipulation. powerpc version.
|
||||
+ Copyright (C) 2017 Free Software Foundation, Inc.
|
||||
+ This file is part of the GNU C Library.
|
||||
+
|
||||
+ The GNU C Library is free software; you can redistribute it and/or
|
||||
+ modify it under the terms of the GNU Lesser General Public
|
||||
+ License as published by the Free Software Foundation; either
|
||||
+ version 2.1 of the License, or (at your option) any later version.
|
||||
+
|
||||
+ The GNU C Library is distributed in the hope that it will be useful,
|
||||
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
+ Lesser General Public License for more details.
|
||||
+
|
||||
+ You should have received a copy of the GNU Lesser General Public
|
||||
+ License along with the GNU C Library; if not, see
|
||||
+ <http://www.gnu.org/licenses/>. */
|
||||
+
|
||||
+#include <sysdeps/wordsize-32/divdi3-symbol-hacks.h>
|
||||
+
|
||||
+#include_next "symbol-hacks.h"
|
||||
diff --git a/sysdeps/s390/s390-32/symbol-hacks.h b/sysdeps/s390/s390-32/symbol-hacks.h
|
||||
new file mode 100644
|
||||
index 0000000000..585c42365a
|
||||
--- /dev/null
|
||||
+++ b/sysdeps/s390/s390-32/symbol-hacks.h
|
||||
@@ -0,0 +1,21 @@
|
||||
+/* Hacks needed for symbol manipulation. s390 version.
|
||||
+ Copyright (C) 2017 Free Software Foundation, Inc.
|
||||
+ This file is part of the GNU C Library.
|
||||
+
|
||||
+ The GNU C Library is free software; you can redistribute it and/or
|
||||
+ modify it under the terms of the GNU Lesser General Public
|
||||
+ License as published by the Free Software Foundation; either
|
||||
+ version 2.1 of the License, or (at your option) any later version.
|
||||
+
|
||||
+ The GNU C Library is distributed in the hope that it will be useful,
|
||||
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
+ Lesser General Public License for more details.
|
||||
+
|
||||
+ You should have received a copy of the GNU Lesser General Public
|
||||
+ License along with the GNU C Library; if not, see
|
||||
+ <http://www.gnu.org/licenses/>. */
|
||||
+
|
||||
+#include <sysdeps/wordsize-32/divdi3-symbol-hacks.h>
|
||||
+
|
||||
+#include_next "symbol-hacks.h"
|
||||
diff --git a/sysdeps/unix/sysv/linux/i386/Makefile b/sysdeps/unix/sysv/linux/i386/Makefile
|
||||
index 6aac0dfe15..4080b8c966 100644
|
||||
--- a/sysdeps/unix/sysv/linux/i386/Makefile
|
||||
+++ b/sysdeps/unix/sysv/linux/i386/Makefile
|
||||
@@ -26,6 +26,11 @@ endif
|
||||
|
||||
ifeq ($(subdir),csu)
|
||||
sysdep-dl-routines += sysdep
|
||||
+ifeq (yes,$(build-shared))
|
||||
+sysdep_routines += divdi3
|
||||
+shared-only-routines += divdi3
|
||||
+CPPFLAGS-divdi3.c = -Din_divdi3_c
|
||||
+endif
|
||||
endif
|
||||
|
||||
ifeq ($(subdir),nptl)
|
||||
diff --git a/sysdeps/unix/sysv/linux/m68k/Makefile b/sysdeps/unix/sysv/linux/m68k/Makefile
|
||||
index 5c50ce6927..ce1f696a6f 100644
|
||||
--- a/sysdeps/unix/sysv/linux/m68k/Makefile
|
||||
+++ b/sysdeps/unix/sysv/linux/m68k/Makefile
|
||||
@@ -4,6 +4,11 @@ m68k-syntax-flag = -DMOTOROLA_SYNTAX
|
||||
|
||||
ifeq ($(subdir),csu)
|
||||
sysdep_routines += m68k-helpers
|
||||
+ifeq (yes,$(build-shared))
|
||||
+sysdep_routines += divdi3
|
||||
+shared-only-routines += divdi3
|
||||
+CPPFLAGS-divdi3.c = -Din_divdi3_c
|
||||
+endif
|
||||
endif
|
||||
|
||||
ifeq ($(subdir),misc)
|
||||
diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile b/sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
|
||||
index 3d6c150582..1f45659ed1 100644
|
||||
--- a/sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
|
||||
+++ b/sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
|
||||
@@ -1,2 +1,10 @@
|
||||
# See Makeconfig regarding the use of default-abi.
|
||||
default-abi := 32
|
||||
+
|
||||
+ifeq ($(subdir),csu)
|
||||
+ifeq (yes,$(build-shared))
|
||||
+sysdep_routines += divdi3
|
||||
+shared-only-routines += divdi3
|
||||
+CPPFLAGS-divdi3.c = -Din_divdi3_c
|
||||
+endif
|
||||
+endif
|
||||
diff --git a/sysdeps/unix/sysv/linux/s390/s390-32/Makefile b/sysdeps/unix/sysv/linux/s390/s390-32/Makefile
|
||||
index da3b3c76b4..fd8cf92633 100644
|
||||
--- a/sysdeps/unix/sysv/linux/s390/s390-32/Makefile
|
||||
+++ b/sysdeps/unix/sysv/linux/s390/s390-32/Makefile
|
||||
@@ -21,3 +21,11 @@ endif
|
||||
ifeq ($(subdir),stdlib)
|
||||
sysdep_routines += __makecontext_ret
|
||||
endif
|
||||
+
|
||||
+ifeq ($(subdir),csu)
|
||||
+ifeq (yes,$(build-shared))
|
||||
+sysdep_routines += divdi3
|
||||
+shared-only-routines += divdi3
|
||||
+CPPFLAGS-divdi3.c = -Din_divdi3_c
|
||||
+endif
|
||||
+endif
|
||||
diff --git a/sysdeps/wordsize-32/Makefile b/sysdeps/wordsize-32/Makefile
|
||||
deleted file mode 100644
|
||||
index 82beac44ed..0000000000
|
||||
--- a/sysdeps/wordsize-32/Makefile
|
||||
+++ /dev/null
|
||||
@@ -1,7 +0,0 @@
|
||||
-ifeq ($(subdir),csu)
|
||||
-ifeq (yes,$(build-shared))
|
||||
-sysdep_routines += divdi3
|
||||
-shared-only-routines += divdi3
|
||||
-CPPFLAGS-divdi3.c = -Din_divdi3_c
|
||||
-endif
|
||||
-endif
|
||||
diff --git a/sysdeps/wordsize-32/divdi3-symbol-hacks.h b/sysdeps/wordsize-32/divdi3-symbol-hacks.h
|
||||
new file mode 100644
|
||||
index 0000000000..6c90cb796d
|
||||
--- /dev/null
|
||||
+++ b/sysdeps/wordsize-32/divdi3-symbol-hacks.h
|
||||
@@ -0,0 +1,31 @@
|
||||
+/* Hacks needed for divdi3 symbol manipulation.
|
||||
+ Copyright (C) 2004-2017 Free Software Foundation, Inc.
|
||||
+ This file is part of the GNU C Library.
|
||||
+
|
||||
+ The GNU C Library is free software; you can redistribute it and/or
|
||||
+ modify it under the terms of the GNU Lesser General Public
|
||||
+ License as published by the Free Software Foundation; either
|
||||
+ version 2.1 of the License, or (at your option) any later version.
|
||||
+
|
||||
+ The GNU C Library is distributed in the hope that it will be useful,
|
||||
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
+ Lesser General Public License for more details.
|
||||
+
|
||||
+ You should have received a copy of the GNU Lesser General Public
|
||||
+ License along with the GNU C Library; if not, see
|
||||
+ <http://www.gnu.org/licenses/>. */
|
||||
+
|
||||
+/* A very dirty trick: gcc emits references to __divdi3, __udivdi3,
|
||||
+ __moddi3, and __umoddi3. These functions are exported and
|
||||
+ therefore we get PLTs. Unnecessarily so. Changing gcc is a big
|
||||
+ task which might not be worth it so we play tricks with the
|
||||
+ assembler.
|
||||
+ Note: in_divdi3_c is only used to avoid symbol alias on divdi3
|
||||
+ build itself. */
|
||||
+#if !defined __ASSEMBLER__ && !defined in_divdi3_c && IS_IN (libc) && defined SHARED
|
||||
+asm ("__divdi3 = __divdi3_internal");
|
||||
+asm ("__udivdi3 = __udivdi3_internal");
|
||||
+asm ("__moddi3 = __moddi3_internal");
|
||||
+asm ("__umoddi3 = __umoddi3_internal");
|
||||
+#endif
|
||||
diff --git a/sysdeps/wordsize-32/symbol-hacks.h b/sysdeps/wordsize-32/symbol-hacks.h
|
||||
deleted file mode 100644
|
||||
index 0aec1e0b97..0000000000
|
||||
--- a/sysdeps/wordsize-32/symbol-hacks.h
|
||||
+++ /dev/null
|
||||
@@ -1,31 +0,0 @@
|
||||
-/* Hacks needed for symbol manipulation.
|
||||
- Copyright (C) 2004-2017 Free Software Foundation, Inc.
|
||||
- This file is part of the GNU C Library.
|
||||
-
|
||||
- The GNU C Library is free software; you can redistribute it and/or
|
||||
- modify it under the terms of the GNU Lesser General Public
|
||||
- License as published by the Free Software Foundation; either
|
||||
- version 2.1 of the License, or (at your option) any later version.
|
||||
-
|
||||
- The GNU C Library is distributed in the hope that it will be useful,
|
||||
- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
- Lesser General Public License for more details.
|
||||
-
|
||||
- You should have received a copy of the GNU Lesser General Public
|
||||
- License along with the GNU C Library; if not, see
|
||||
- <http://www.gnu.org/licenses/>. */
|
||||
-
|
||||
-#include_next "symbol-hacks.h"
|
||||
-
|
||||
-/* A very dirty trick: gcc emits references to __divdi3, __udivdi3,
|
||||
- __moddi3, and __umoddi3. These functions are exported and
|
||||
- therefore we get PLTs. Unnecessarily so. Changing gcc is a big
|
||||
- task which might not be worth it so we play tricks with the
|
||||
- assembler. */
|
||||
-#if !defined __ASSEMBLER__ && !defined in_divdi3_c && IS_IN (libc) && defined SHARED
|
||||
-asm ("__divdi3 = __divdi3_internal");
|
||||
-asm ("__udivdi3 = __udivdi3_internal");
|
||||
-asm ("__moddi3 = __moddi3_internal");
|
||||
-asm ("__umoddi3 = __umoddi3_internal");
|
||||
-#endif
|
||||
@@ -0,0 +1,29 @@
|
||||
From eb7cce5dbb53a64cf55ac0d9a7fa4dcbebd4b173 Mon Sep 17 00:00:00 2001
|
||||
From: Waldemar Brodkorb <wbx@openadk.org>
|
||||
Date: Mon, 14 Aug 2017 23:24:38 +0200
|
||||
Subject: [PATCH] SConstruct: do not force -O2 by default
|
||||
|
||||
-O2 can cause problems on some architectures, so do not force it by
|
||||
default.
|
||||
|
||||
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
|
||||
---
|
||||
SConstruct | 2 --
|
||||
1 file changed, 2 deletions(-)
|
||||
|
||||
diff --git a/SConstruct b/SConstruct
|
||||
index fe444a2..93d91a4 100644
|
||||
--- a/SConstruct
|
||||
+++ b/SConstruct
|
||||
@@ -330,8 +330,6 @@ if not 'CCFLAGS' in os.environ:
|
||||
# Should we build with optimisation?
|
||||
if env['debug'] or env['coveraging']:
|
||||
env.Append(CCFLAGS=['-O0'])
|
||||
- else:
|
||||
- env.Append(CCFLAGS=['-O2'])
|
||||
|
||||
# Get a slight speedup by not doing automatic RCS and SCCS fetches.
|
||||
env.SourceCode('.', None)
|
||||
--
|
||||
2.9.4
|
||||
|
||||
@@ -44,7 +44,7 @@ endif
|
||||
# A bug was reported to the gcc bug tracker:
|
||||
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68485
|
||||
ifeq ($(BR2_microblaze),y)
|
||||
GPSD_CFLAGS += -fno-expensive-optimizations -fno-schedule-insns
|
||||
GPSD_CFLAGS += -O0
|
||||
endif
|
||||
|
||||
# Enable or disable Qt binding
|
||||
|
||||
@@ -18,4 +18,6 @@ GST1_VALIDATE_DEPENDENCIES = \
|
||||
python \
|
||||
$(if $(BR2_PACKAGE_CAIRO),cairo)
|
||||
|
||||
GST1_VALIDATE_CONF_OPTS += --disable-sphinx-doc
|
||||
|
||||
$(eval $(autotools-package))
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
From f7bccdca651592cc4082b28fd4a01ed6ef8ab655 Mon Sep 17 00:00:00 2001
|
||||
From: Kjetil Matheussen <k.s.matheussen@notam02.no>
|
||||
Date: Sat, 15 Jul 2017 13:21:59 +0200
|
||||
Subject: [PATCH] Tests: Fix compilation with gcc7
|
||||
|
||||
Fixes
|
||||
../tests/test.cpp: In function ‘int process4(jack_nframes_t, void*)’:
|
||||
../tests/test.cpp:483:73: error: call of overloaded ‘abs(jack_nframes_t)’ is ambiguous
|
||||
if (delta_time > 0 && (jack_nframes_t)abs(delta_time - cur_buffer_size) > tolerance) {
|
||||
|
||||
Downloaded from upstream commit
|
||||
https://github.com/jackaudio/jack2/commit/f7bccdca651592cc4082b28fd4a01ed6ef8ab655
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
||||
---
|
||||
tests/test.cpp | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/tests/test.cpp b/tests/test.cpp
|
||||
index 8a8a8117..d2ef9a05 100644
|
||||
--- a/tests/test.cpp
|
||||
+++ b/tests/test.cpp
|
||||
@@ -479,7 +479,7 @@ int process4(jack_nframes_t nframes, void *arg)
|
||||
jack_nframes_t delta_time = cur_time - last_time;
|
||||
|
||||
Log("calling process4 callback : jack_frame_time = %ld delta_time = %ld\n", cur_time, delta_time);
|
||||
- if (delta_time > 0 && (jack_nframes_t)abs(delta_time - cur_buffer_size) > tolerance) {
|
||||
+ if (delta_time > 0 && abs((int64_t)delta_time - (int64_t)cur_buffer_size) > (int64_t)tolerance) {
|
||||
printf("!!! ERROR !!! jack_frame_time seems to return incorrect values cur_buffer_size = %d, delta_time = %d tolerance %d\n", cur_buffer_size, delta_time, tolerance);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
From d3c8e2d8d78899fba40a3e677ed4dbe388d82269 Mon Sep 17 00:00:00 2001
|
||||
From: Adrian Knoth <adi@drcomp.erfurt.thur.de>
|
||||
Date: Thu, 18 Sep 2014 18:29:23 +0200
|
||||
Subject: [PATCH] Fix FTBFS with clang++
|
||||
|
||||
Forwarded from http://bugs.debian.org/757820
|
||||
|
||||
Downloaded from upstream commit
|
||||
https://github.com/jackaudio/jack2/commit/d3c8e2d8d78899fba40a3e677ed4dbe388d82269
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
||||
---
|
||||
common/memops.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/common/memops.c b/common/memops.c
|
||||
index 27f6194a..2d416b64 100644
|
||||
--- a/common/memops.c
|
||||
+++ b/common/memops.c
|
||||
@@ -198,7 +198,7 @@ static inline __m128i float_24_sse(__m128 s)
|
||||
*/
|
||||
static unsigned int seed = 22222;
|
||||
|
||||
-inline unsigned int fast_rand() {
|
||||
+static inline unsigned int fast_rand() {
|
||||
seed = (seed * 96314165) + 907633515;
|
||||
return seed;
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
From bec1b0ced72dc0d49825d6b69d09296d13fd0af3 Mon Sep 17 00:00:00 2001
|
||||
From: Andre Przywara <andre.przywara@arm.com>
|
||||
Date: Tue, 21 Jul 2015 10:58:46 +0100
|
||||
Subject: [PATCH] avoid redefining PAGE_SIZE
|
||||
|
||||
PAGE_SIZE may have been defined by the C libary (musl-libc does that).
|
||||
So avoid redefining it here unconditionally, instead only use our
|
||||
definition if none has been provided by the libc.
|
||||
|
||||
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
|
||||
Signed-off-by: Will Deacon <will.deacon@arm.com>
|
||||
[backport from upstream commit 4095fac878f618ae5e7384a1dc65ee34b6e05217.]
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
---
|
||||
include/kvm/kvm.h | 3 +++
|
||||
1 file changed, 3 insertions(+)
|
||||
|
||||
diff --git a/include/kvm/kvm.h b/include/kvm/kvm.h
|
||||
index 754e029..37155db 100644
|
||||
--- a/include/kvm/kvm.h
|
||||
+++ b/include/kvm/kvm.h
|
||||
@@ -11,6 +11,7 @@
|
||||
#include <time.h>
|
||||
#include <signal.h>
|
||||
#include <sys/prctl.h>
|
||||
+#include <limits.h>
|
||||
|
||||
#define SIGKVMEXIT (SIGRTMIN + 0)
|
||||
#define SIGKVMPAUSE (SIGRTMIN + 1)
|
||||
@@ -19,7 +20,9 @@
|
||||
#define HOME_DIR getenv("HOME")
|
||||
#define KVM_BINARY_NAME "lkvm"
|
||||
|
||||
+#ifndef PAGE_SIZE
|
||||
#define PAGE_SIZE (sysconf(_SC_PAGE_SIZE))
|
||||
+#endif
|
||||
|
||||
#define DEFINE_KVM_EXT(ext) \
|
||||
.name = #ext, \
|
||||
--
|
||||
2.9.4
|
||||
|
||||
@@ -0,0 +1,58 @@
|
||||
From ce9abb649165aca728e4645ce09e7bb77e684b06 Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
Date: Sat, 19 Aug 2017 16:35:59 +0200
|
||||
Subject: [PATCH] x86/kvm-cpu.c: don't include <asm/msr-index.h>
|
||||
|
||||
Since kernel commit 25dc1d6cc3082aab293e5dad47623b550f7ddd2a ("x86:
|
||||
stop exporting msr-index.h to userland"), <asm/msr-index.h> is no
|
||||
longer exported to userspace. Therefore, any toolchain built with
|
||||
kernel headers >= 4.12 will no longer have this header file, causing a
|
||||
build failure in kvmtool.
|
||||
|
||||
As a replacement, this patch includes inside x86/kvm-cpu.c the
|
||||
necessary MSR_* definitions.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
Submitted-upstream: https://patchwork.kernel.org/patch/9910687/
|
||||
---
|
||||
x86/kvm-cpu.c | 17 ++++++++++++++++-
|
||||
1 file changed, 16 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/x86/kvm-cpu.c b/x86/kvm-cpu.c
|
||||
index 5cc4e1e..b02ff65 100644
|
||||
--- a/x86/kvm-cpu.c
|
||||
+++ b/x86/kvm-cpu.c
|
||||
@@ -4,7 +4,6 @@
|
||||
#include "kvm/util.h"
|
||||
#include "kvm/kvm.h"
|
||||
|
||||
-#include <asm/msr-index.h>
|
||||
#include <asm/apicdef.h>
|
||||
#include <linux/err.h>
|
||||
#include <sys/ioctl.h>
|
||||
@@ -136,6 +135,22 @@ static struct kvm_msrs *kvm_msrs__new(size_t nmsrs)
|
||||
return vcpu;
|
||||
}
|
||||
|
||||
+#define MSR_IA32_SYSENTER_CS 0x00000174
|
||||
+#define MSR_IA32_SYSENTER_ESP 0x00000175
|
||||
+#define MSR_IA32_SYSENTER_EIP 0x00000176
|
||||
+
|
||||
+#define MSR_STAR 0xc0000081 /* legacy mode SYSCALL target */
|
||||
+#define MSR_LSTAR 0xc0000082 /* long mode SYSCALL target */
|
||||
+#define MSR_CSTAR 0xc0000083 /* compat mode SYSCALL target */
|
||||
+#define MSR_SYSCALL_MASK 0xc0000084 /* EFLAGS mask for syscall */
|
||||
+#define MSR_KERNEL_GS_BASE 0xc0000102 /* SwapGS GS shadow */
|
||||
+
|
||||
+#define MSR_IA32_TSC 0x00000010
|
||||
+#define MSR_IA32_MISC_ENABLE 0x000001a0
|
||||
+
|
||||
+#define MSR_IA32_MISC_ENABLE_FAST_STRING_BIT 0
|
||||
+#define MSR_IA32_MISC_ENABLE_FAST_STRING (1ULL << MSR_IA32_MISC_ENABLE_FAST_STRING_BIT)
|
||||
+
|
||||
#define KVM_MSR_ENTRY(_index, _data) \
|
||||
(struct kvm_msr_entry) { .index = _index, .data = _data }
|
||||
|
||||
--
|
||||
2.9.4
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
From 19490e24895df95253e43a7aacf3ef408b830bd5 Mon Sep 17 00:00:00 2001
|
||||
From: Andre Przywara <andre.przywara@arm.com>
|
||||
Date: Fri, 17 Jul 2015 17:02:15 +0100
|
||||
Subject: [PATCH] use <poll.h> instead of <sys/poll.h>
|
||||
|
||||
The manpage of poll(2) states that the prototype of poll is defined
|
||||
in <poll.h>. Use that header file instead of <sys/poll.h> to allow
|
||||
compilation against musl-libc.
|
||||
|
||||
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
|
||||
Signed-off-by: Will Deacon <will.deacon@arm.com>
|
||||
[backport from upstream commit 52c22e6e64a94cc701d86587d32cd3822ac5c293.]
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
---
|
||||
disk/core.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/disk/core.c b/disk/core.c
|
||||
index 309e16c..dd2f258 100644
|
||||
--- a/disk/core.c
|
||||
+++ b/disk/core.c
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
#include <linux/err.h>
|
||||
#include <sys/eventfd.h>
|
||||
-#include <sys/poll.h>
|
||||
+#include <poll.h>
|
||||
|
||||
#define AIO_MAX 256
|
||||
|
||||
--
|
||||
2.9.4
|
||||
|
||||
@@ -0,0 +1,90 @@
|
||||
From 7a9c16dcf58ff4c8154f3a9dfa1f02ec3daa1662 Mon Sep 17 00:00:00 2001
|
||||
From: Andre Przywara <andre.przywara@arm.com>
|
||||
Date: Fri, 17 Jul 2015 17:02:16 +0100
|
||||
Subject: [PATCH] check for and use C library provided strlcpy and strlcat
|
||||
|
||||
The musl-libc library provides implementations of strlcpy and strlcat,
|
||||
so introduce a feature check for it and only use the kvmtool
|
||||
implementation if there is no library support for it.
|
||||
This avoids clashes with the public definition.
|
||||
|
||||
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
|
||||
Signed-off-by: Will Deacon <will.deacon@arm.com>
|
||||
[backport from upstream commit 8f22adc4230f07980a318ad1662fba5af0c131c1.]
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
---
|
||||
Makefile | 5 +++++
|
||||
config/feature-tests.mak | 10 ++++++++++
|
||||
include/kvm/strbuf.h | 2 ++
|
||||
util/strbuf.c | 2 ++
|
||||
4 files changed, 19 insertions(+)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 151fa9d..bf71db4 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -199,6 +199,11 @@ endif
|
||||
# On a given system, some libs may link statically, some may not; so, check
|
||||
# both and only build those that link!
|
||||
|
||||
+ifeq ($(call try-build,$(SOURCE_STRLCPY),$(CFLAGS),),y)
|
||||
+ CFLAGS_DYNOPT += -DHAVE_STRLCPY
|
||||
+ CFLAGS_STATOPT += -DHAVE_STRLCPY
|
||||
+endif
|
||||
+
|
||||
ifeq ($(call try-build,$(SOURCE_BFD),$(CFLAGS),-lbfd -static),y)
|
||||
CFLAGS_STATOPT += -DCONFIG_HAS_BFD
|
||||
OBJS_STATOPT += symbol.o
|
||||
diff --git a/config/feature-tests.mak b/config/feature-tests.mak
|
||||
index 6bee6c2..03cdb42 100644
|
||||
--- a/config/feature-tests.mak
|
||||
+++ b/config/feature-tests.mak
|
||||
@@ -196,3 +196,13 @@ int main(void)
|
||||
return 0;
|
||||
}
|
||||
endef
|
||||
+
|
||||
+define SOURCE_STRLCPY
|
||||
+#include <string.h>
|
||||
+
|
||||
+int main(void)
|
||||
+{
|
||||
+ strlcpy(NULL, NULL, 0);
|
||||
+ return 0;
|
||||
+}
|
||||
+endef
|
||||
diff --git a/include/kvm/strbuf.h b/include/kvm/strbuf.h
|
||||
index 2beefbc..7657339 100644
|
||||
--- a/include/kvm/strbuf.h
|
||||
+++ b/include/kvm/strbuf.h
|
||||
@@ -6,8 +6,10 @@
|
||||
|
||||
int prefixcmp(const char *str, const char *prefix);
|
||||
|
||||
+#ifndef HAVE_STRLCPY
|
||||
extern size_t strlcat(char *dest, const char *src, size_t count);
|
||||
extern size_t strlcpy(char *dest, const char *src, size_t size);
|
||||
+#endif
|
||||
|
||||
/* some inline functions */
|
||||
|
||||
diff --git a/util/strbuf.c b/util/strbuf.c
|
||||
index 99d6b0c..2c6e8ad 100644
|
||||
--- a/util/strbuf.c
|
||||
+++ b/util/strbuf.c
|
||||
@@ -13,6 +13,7 @@ int prefixcmp(const char *str, const char *prefix)
|
||||
}
|
||||
}
|
||||
|
||||
+#ifndef HAVE_STRLCPY
|
||||
/**
|
||||
* strlcat - Append a length-limited, %NUL-terminated string to another
|
||||
* @dest: The string to be appended to
|
||||
@@ -60,3 +61,4 @@ size_t strlcpy(char *dest, const char *src, size_t size)
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
+#endif
|
||||
--
|
||||
2.9.4
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
From d375235f49184371026791ae8f6f9dc307de8a61 Mon Sep 17 00:00:00 2001
|
||||
From: Andre Przywara <andre.przywara@arm.com>
|
||||
Date: Fri, 17 Jul 2015 17:02:14 +0100
|
||||
Subject: [PATCH] Fix call to connect()
|
||||
|
||||
According to the manpage and the prototype the second argument to
|
||||
connect(2) is a "const struct sockaddr*", so cast our protocol
|
||||
specific type back to the super type.
|
||||
This fixes compilation on musl-libc.
|
||||
|
||||
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
|
||||
Signed-off-by: Will Deacon <will.deacon@arm.com>
|
||||
[backport from upstream commit d77bd4f466f341d4b35fe8b91176ef8a37160e19.]
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
---
|
||||
kvm-ipc.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/kvm-ipc.c b/kvm-ipc.c
|
||||
index b1c43dd..5a0b6e0 100644
|
||||
--- a/kvm-ipc.c
|
||||
+++ b/kvm-ipc.c
|
||||
@@ -99,7 +99,7 @@ int kvm__get_sock_by_instance(const char *name)
|
||||
strlcpy(local.sun_path, sock_file, sizeof(local.sun_path));
|
||||
len = strlen(local.sun_path) + sizeof(local.sun_family);
|
||||
|
||||
- r = connect(s, &local, len);
|
||||
+ r = connect(s, (struct sockaddr *)&local, len);
|
||||
if (r < 0 && errno == ECONNREFUSED) {
|
||||
/* Tell the user clean ghost socket file */
|
||||
pr_err("\"%s\" could be a ghost socket file, please remove it",
|
||||
--
|
||||
2.9.4
|
||||
|
||||
@@ -8,4 +8,4 @@ config BR2_PACKAGE_LIBCONFUSE
|
||||
environment variable expansion, functions and nested include
|
||||
statements.
|
||||
|
||||
http://savannah.nongnu.org/download/confuse/
|
||||
https://github.com/martinh/libconfuse/
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
# From https://github.com/martinh/libconfuse/releases/download/v3.1/confuse-3.1.tar.xz.md5, sha256 locally computed.
|
||||
md5 08f1ace0055f92d80a8ad11671346a37 confuse-3.1.tar.xz
|
||||
sha256 8171f31e0071d5e4460269fdcc8b4e748cf23b4bf6bbe672f718a136dd63ca66 confuse-3.1.tar.xz
|
||||
# From https://github.com/martinh/libconfuse/releases/download/v3.2/confuse-3.2.tar.xz.md5
|
||||
md5 84259ac3bd495645ab2fe61654917232 confuse-3.2.tar.xz
|
||||
# Locally computed
|
||||
sha256 a46abb8696026d314197b6a70ae1a1c296342a9a68aa69b1935709c1477a4e48 confuse-3.1.tar.xz
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBCONFUSE_VERSION = 3.1
|
||||
LIBCONFUSE_VERSION = 3.2
|
||||
LIBCONFUSE_SOURCE = confuse-$(LIBCONFUSE_VERSION).tar.xz
|
||||
LIBCONFUSE_SITE = https://github.com/martinh/libconfuse/releases/download/v$(LIBCONFUSE_VERSION)
|
||||
LIBCONFUSE_INSTALL_STAGING = YES
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
From 7d84bd820ef412d251b643a4faced105668f4ebd Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
Date: Fri, 11 Aug 2017 18:52:37 +0200
|
||||
Subject: [PATCH] curl/system.h: support more architectures
|
||||
|
||||
The long list of architectures in include/curl/system.h is annoying to
|
||||
maintain, and needs to be extended for each and every architecture to
|
||||
support.
|
||||
|
||||
Instead, let's rely on the __SIZEOF_LONG__ define of the gcc compiler
|
||||
(we are in the GNUC condition anyway), which tells us if long is 4
|
||||
bytes or 8 bytes.
|
||||
|
||||
This fixes the build of libcurl 7.55.0 on architectures such as
|
||||
OpenRISC or ARC.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
---
|
||||
include/curl/system.h | 5 +++--
|
||||
1 file changed, 3 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/include/curl/system.h b/include/curl/system.h
|
||||
index 79abf8f..0e13075 100644
|
||||
--- a/include/curl/system.h
|
||||
+++ b/include/curl/system.h
|
||||
@@ -403,7 +403,7 @@
|
||||
# if !defined(__LP64__) && (defined(__ILP32__) || \
|
||||
defined(__i386__) || defined(__ppc__) || defined(__arm__) || \
|
||||
defined(__sparc__) || defined(__mips__) || defined(__sh__) || \
|
||||
- defined(__XTENSA__))
|
||||
+ defined(__XTENSA__) || (defined(__SIZEOF_LONG__) && __SIZEOF_LONG__ == 4))
|
||||
# define CURL_SIZEOF_LONG 4
|
||||
# define CURL_TYPEOF_CURL_OFF_T long long
|
||||
# define CURL_FORMAT_CURL_OFF_T "lld"
|
||||
@@ -412,7 +412,8 @@
|
||||
# define CURL_SUFFIX_CURL_OFF_T LL
|
||||
# define CURL_SUFFIX_CURL_OFF_TU ULL
|
||||
# elif defined(__LP64__) || \
|
||||
- defined(__x86_64__) || defined(__ppc64__) || defined(__sparc64__)
|
||||
+ defined(__x86_64__) || defined(__ppc64__) || defined(__sparc64__) || \
|
||||
+ (defined(__SIZEOF_LONG__) && __SIZEOF_LONG__ == 8)
|
||||
# define CURL_SIZEOF_LONG 8
|
||||
# define CURL_TYPEOF_CURL_OFF_T long
|
||||
# define CURL_FORMAT_CURL_OFF_T "ld"
|
||||
--
|
||||
2.9.4
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
# Locally calculated after checking pgp signature
|
||||
sha256 fdfc4df2d001ee0c44ec071186e770046249263c491fcae48df0e1a3ca8f25a0 curl-7.54.1.tar.bz2
|
||||
# https://curl.haxx.se/download/curl-7.55.0.tar.xz.asc
|
||||
sha256 cdd58522f8607fd4e871df79d73acb3155075e2134641e5adab12a0962df059d curl-7.55.0.tar.xz
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBCURL_VERSION = 7.54.1
|
||||
LIBCURL_SOURCE = curl-$(LIBCURL_VERSION).tar.bz2
|
||||
LIBCURL_VERSION = 7.55.0
|
||||
LIBCURL_SOURCE = curl-$(LIBCURL_VERSION).tar.xz
|
||||
LIBCURL_SITE = https://curl.haxx.se/download
|
||||
LIBCURL_DEPENDENCIES = host-pkgconf \
|
||||
$(if $(BR2_PACKAGE_ZLIB),zlib) \
|
||||
|
||||
@@ -0,0 +1,62 @@
|
||||
From 0e004b7344ea67fd682f33446d19e3b63a187513 Mon Sep 17 00:00:00 2001
|
||||
From: Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
|
||||
Date: Mon, 24 Apr 2017 16:10:28 +0200
|
||||
Subject: [PATCH] epoxy_internal_has_gl_extension, epoxy_egl_version: add some
|
||||
missing nullpointer checks from
|
||||
https://bugzilla.redhat.com/show_bug.cgi?id=1395366 Related commit:
|
||||
b3b8bd9af7bf1fcfe544fd131f4d4f0d117ae7bc Fix "epoxy_glx_version" to handle
|
||||
the case when GLX is not active on the display. Patch is tweak from the
|
||||
original version posted by Tom Horsley
|
||||
|
||||
Backported from: https://github.com/anholt/libepoxy/pull/118
|
||||
|
||||
Signed-off-by: Adrian Perez de Castro <aperez@igalia.com>
|
||||
---
|
||||
src/dispatch_common.c | 9 ++++++++-
|
||||
src/dispatch_egl.c | 3 +++
|
||||
2 files changed, 11 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/dispatch_common.c b/src/dispatch_common.c
|
||||
index b521b1b..a38c0fc 100644
|
||||
--- a/src/dispatch_common.c
|
||||
+++ b/src/dispatch_common.c
|
||||
@@ -443,7 +443,12 @@ bool
|
||||
epoxy_extension_in_string(const char *extension_list, const char *ext)
|
||||
{
|
||||
const char *ptr = extension_list;
|
||||
- int len = strlen(ext);
|
||||
+ int len;
|
||||
+
|
||||
+ if (!ext)
|
||||
+ return false;
|
||||
+
|
||||
+ len = strlen(ext);
|
||||
|
||||
if (extension_list == NULL || *extension_list == '\0')
|
||||
return false;
|
||||
@@ -478,6 +483,8 @@ epoxy_internal_has_gl_extension(const char *ext, bool invalid_op_mode)
|
||||
|
||||
for (i = 0; i < num_extensions; i++) {
|
||||
const char *gl_ext = (const char *)glGetStringi(GL_EXTENSIONS, i);
|
||||
+ if (!gl_ext)
|
||||
+ return false;
|
||||
if (strcmp(ext, gl_ext) == 0)
|
||||
return true;
|
||||
}
|
||||
diff --git a/src/dispatch_egl.c b/src/dispatch_egl.c
|
||||
index 50e66dd..f555a58 100644
|
||||
--- a/src/dispatch_egl.c
|
||||
+++ b/src/dispatch_egl.c
|
||||
@@ -65,6 +65,9 @@ epoxy_egl_version(EGLDisplay dpy)
|
||||
int ret;
|
||||
|
||||
version_string = eglQueryString(dpy, EGL_VERSION);
|
||||
+ if (!version_string)
|
||||
+ return 0;
|
||||
+
|
||||
ret = sscanf(version_string, "%d.%d", &major, &minor);
|
||||
assert(ret == 2);
|
||||
return major * 10 + minor;
|
||||
--
|
||||
2.14.1
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
From 1175b1cd102ee15512185c7983868e5746959da0 Mon Sep 17 00:00:00 2001
|
||||
From: Adam Schubert <feartohell@seznam.cz>
|
||||
Date: Mon, 11 May 2015 04:25:45 +0200
|
||||
Subject: [PATCH] Fix build under clang
|
||||
|
||||
Downloaded from upstream commit:
|
||||
https://github.com/librsync/librsync/commit/1175b1cd102ee15512185c7983868e5746959da0.patch
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
||||
|
||||
---
|
||||
delta.c | 12 ++++++------
|
||||
1 file changed, 6 insertions(+), 6 deletions(-)
|
||||
|
||||
diff --git a/delta.c b/delta.c
|
||||
index 19498f9..72afdf6 100644
|
||||
--- a/delta.c
|
||||
+++ b/delta.c
|
||||
@@ -126,12 +126,12 @@ static rs_result rs_delta_s_scan(rs_job_t *job);
|
||||
static rs_result rs_delta_s_flush(rs_job_t *job);
|
||||
static rs_result rs_delta_s_end(rs_job_t *job);
|
||||
void rs_getinput(rs_job_t *job);
|
||||
-inline int rs_findmatch(rs_job_t *job, rs_long_t *match_pos, size_t *match_len);
|
||||
-inline rs_result rs_appendmatch(rs_job_t *job, rs_long_t match_pos, size_t match_len);
|
||||
-inline rs_result rs_appendmiss(rs_job_t *job, size_t miss_len);
|
||||
-inline rs_result rs_appendflush(rs_job_t *job);
|
||||
-inline rs_result rs_processmatch(rs_job_t *job);
|
||||
-inline rs_result rs_processmiss(rs_job_t *job);
|
||||
+static inline int rs_findmatch(rs_job_t *job, rs_long_t *match_pos, size_t *match_len);
|
||||
+static inline rs_result rs_appendmatch(rs_job_t *job, rs_long_t match_pos, size_t match_len);
|
||||
+static inline rs_result rs_appendmiss(rs_job_t *job, size_t miss_len);
|
||||
+static inline rs_result rs_appendflush(rs_job_t *job);
|
||||
+static inline rs_result rs_processmatch(rs_job_t *job);
|
||||
+static inline rs_result rs_processmiss(rs_job_t *job);
|
||||
|
||||
/**
|
||||
* \brief Get a block of data if possible, and see if it matches.
|
||||
@@ -0,0 +1,30 @@
|
||||
From 7472764fe19cb3eea77f21cc2859859b8ac62085 Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
Date: Mon, 14 Aug 2017 23:36:36 +0200
|
||||
Subject: [PATCH] configure.ac: do not force -O2
|
||||
|
||||
The user may want to provide its own set of optimization flags, and
|
||||
therefore forcing -O2 should not be done.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
Submitted-upstream: https://github.com/libspatialindex/libspatialindex/pull/101
|
||||
---
|
||||
configure.ac | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index dc5e49f..2e2aa68 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -53,7 +53,7 @@ if test "x$enable_debug" = "xyes"; then
|
||||
CXXFLAGS="$CXXFLAGS -g -DDEBUG"
|
||||
AC_MSG_RESULT(checking wether debug information is enabled... yes)
|
||||
else
|
||||
- CXXFLAGS="$CXXFLAGS -O2 -DNDEBUG"
|
||||
+ CXXFLAGS="$CXXFLAGS -DNDEBUG"
|
||||
AC_MSG_RESULT(checking wether debug information is enabled... no)
|
||||
fi
|
||||
|
||||
--
|
||||
2.9.4
|
||||
|
||||
@@ -11,4 +11,16 @@ LIBSPATIALINDEX_INSTALL_STAGING = YES
|
||||
LIBSPATIALINDEX_LICENSE = MIT
|
||||
LIBSPATIALINDEX_LICENSE_FILES = COPYING
|
||||
|
||||
# 0001-configure.ac-do-not-force-O2.patch
|
||||
LIBSPATIALINDEX_AUTORECONF = YES
|
||||
|
||||
LIBSPATIALINDEX_CXXFLAGS = $(TARGET_CXXFLAGS)
|
||||
LIBSPATIALINDEX_CONF_ENV = CXXFLAGS="$(LIBSPATIALINDEX_CXXFLAGS)"
|
||||
|
||||
# Workaround gcc ICE
|
||||
# (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68485)
|
||||
ifeq ($(BR2_microblaze),y)
|
||||
LIBSPATIALINDEX_CXXFLAGS += -O0
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
|
||||
@@ -22,11 +22,14 @@ config BR2_PACKAGE_LIBUNWIND
|
||||
bool "libunwind"
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on BR2_PACKAGE_LIBUNWIND_ARCH_SUPPORTS
|
||||
# forcefully links against libgcc_s, only available in dynamic
|
||||
# linking configurations
|
||||
depends on !BR2_STATIC_LIBS
|
||||
help
|
||||
C API to determine the call-chain of a program.
|
||||
|
||||
http://www.nongnu.org/libunwind/index.html
|
||||
|
||||
comment "libunwind needs a toolchain w/ threads"
|
||||
comment "libunwind needs a toolchain w/ threads, dynamic library"
|
||||
depends on BR2_PACKAGE_LIBUNWIND_ARCH_SUPPORTS
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
|
||||
|
||||
@@ -28,12 +28,12 @@ config BR2_KERNEL_HEADERS_AS_KERNEL
|
||||
|
||||
config BR2_KERNEL_HEADERS_3_2
|
||||
bool "Linux 3.2.x kernel headers"
|
||||
depends on !BR2_arc && !BR2_nios2
|
||||
depends on !BR2_aarch64 && !BR2_arc && !BR2_nios2
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2
|
||||
|
||||
config BR2_KERNEL_HEADERS_3_4
|
||||
bool "Linux 3.4.x kernel headers"
|
||||
depends on !BR2_arc && !BR2_nios2
|
||||
depends on !BR2_aarch64 && !BR2_arc && !BR2_nios2
|
||||
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4
|
||||
|
||||
config BR2_KERNEL_HEADERS_3_10
|
||||
@@ -235,10 +235,10 @@ config BR2_DEFAULT_KERNEL_HEADERS
|
||||
default "3.4.113" if BR2_KERNEL_HEADERS_3_4
|
||||
default "3.10.106" if BR2_KERNEL_HEADERS_3_10
|
||||
default "3.12.74" if BR2_KERNEL_HEADERS_3_12
|
||||
default "4.1.42" if BR2_KERNEL_HEADERS_4_1
|
||||
default "4.4.79" if BR2_KERNEL_HEADERS_4_4
|
||||
default "4.9.40" if BR2_KERNEL_HEADERS_4_9
|
||||
default "4.1.43" if BR2_KERNEL_HEADERS_4_1
|
||||
default "4.4.83" if BR2_KERNEL_HEADERS_4_4
|
||||
default "4.9.44" if BR2_KERNEL_HEADERS_4_9
|
||||
default "4.10.17" if BR2_KERNEL_HEADERS_4_10
|
||||
default "4.11.12" if BR2_KERNEL_HEADERS_4_11
|
||||
default "4.12.4" if BR2_KERNEL_HEADERS_4_12
|
||||
default "4.12.8" if BR2_KERNEL_HEADERS_4_12
|
||||
default BR2_DEFAULT_KERNEL_VERSION if BR2_KERNEL_HEADERS_VERSION
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
add lua.pc
|
||||
|
||||
Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
|
||||
[Jörg Krause: add @MYLIBS@]
|
||||
Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
|
||||
|
||||
Index: b/etc/lua.pc
|
||||
===================================================================
|
||||
@@ -34,7 +36,7 @@ Index: b/etc/lua.pc
|
||||
+Description: An Extensible Extension Language
|
||||
+Version: ${R}
|
||||
+Requires:
|
||||
+Libs: -L${libdir} -llua -lm
|
||||
+Libs: -L${libdir} -llua -lm @MYLIBS@
|
||||
+Cflags: -I${includedir}
|
||||
+
|
||||
+# (end of lua.pc)
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
add lua.pc
|
||||
|
||||
Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
|
||||
[Jörg Krause: add @MYLIBS@]
|
||||
Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
|
||||
|
||||
Index: b/etc/lua.pc
|
||||
===================================================================
|
||||
@@ -34,7 +36,7 @@ Index: b/etc/lua.pc
|
||||
+Description: An Extensible Extension Language
|
||||
+Version: ${R}
|
||||
+Requires:
|
||||
+Libs: -L${libdir} -llua -lm
|
||||
+Libs: -L${libdir} -llua -lm @MYLIBS@
|
||||
+Cflags: -I${includedir}
|
||||
+
|
||||
+# (end of lua.pc)
|
||||
|
||||
+6
-4
@@ -86,8 +86,9 @@ endef
|
||||
|
||||
define LUA_INSTALL_STAGING_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) INSTALL_TOP="$(STAGING_DIR)/usr" -C $(@D) install
|
||||
$(INSTALL) -m 0644 -D $(@D)/etc/lua.pc \
|
||||
$(STAGING_DIR)/usr/lib/pkgconfig/lua.pc
|
||||
mkdir -p $(STAGING_DIR)/usr/lib/pkgconfig/
|
||||
sed -e "s/@MYLIBS@/$(LUA_MYLIBS)/g" $(@D)/etc/lua.pc \
|
||||
> $(STAGING_DIR)/usr/lib/pkgconfig/lua.pc
|
||||
endef
|
||||
|
||||
define LUA_INSTALL_TARGET_CMDS
|
||||
@@ -96,8 +97,9 @@ endef
|
||||
|
||||
define HOST_LUA_INSTALL_CMDS
|
||||
$(HOST_MAKE_ENV) $(MAKE) INSTALL_TOP="$(HOST_DIR)" -C $(@D) install
|
||||
$(INSTALL) -m 0644 -D $(@D)/etc/lua.pc \
|
||||
$(HOST_DIR)/lib/pkgconfig/lua.pc
|
||||
mkdir -p $(HOST_DIR)/lib/pkgconfig/
|
||||
sed -e "s/@MYLIBS@/$(HOST_LUA_MYLIBS)/g" $(@D)/etc/lua.pc \
|
||||
> $(HOST_DIR)/lib/pkgconfig/lua.pc
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# From https://downloads.mariadb.org/mariadb/10.1.25/
|
||||
sha256 7205ecaa6f1bc16335ad88faa5c46be52b3ac628a5e795cb942a3f4335b2a0d6 mariadb-10.1.25.tar.gz
|
||||
# From https://downloads.mariadb.org/mariadb/10.1.26/
|
||||
sha256 ba88b1cb9967dea2909938a34ba89373b162b0d83e5c98a0f1c94540156bf73d mariadb-10.1.26.tar.gz
|
||||
|
||||
# Hash for license files
|
||||
sha256 69ce89a0cadbe35a858398c258be93c388715e84fc0ca04e5a1fd1aa9770dd3a README
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
MARIADB_VERSION = 10.1.25
|
||||
MARIADB_VERSION = 10.1.26
|
||||
MARIADB_SITE = https://downloads.mariadb.org/interstitial/mariadb-$(MARIADB_VERSION)/source
|
||||
MARIADB_LICENSE = GPL-2.0 (server), GPL-2.0 with FLOSS exception (GPL client library), LGPL-2.0 (LGPL client library)
|
||||
# Tarball no longer contains LGPL license text
|
||||
|
||||
@@ -102,6 +102,7 @@ config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_VC4
|
||||
select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
|
||||
select BR2_PACKAGE_LIBDRM_VC4
|
||||
select BR2_PACKAGE_MESA3D_NEEDS_XA
|
||||
select BR2_PACKAGE_MESA3D_OPENGL_EGL
|
||||
help
|
||||
Driver for Broadcom VC4 (rpi2/3) GPUs.
|
||||
It requires a vanilla 4.5+ kernel with drm vc4 (open) support.
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user