diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-11-25 22:39:15 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-11-25 22:39:15 +0000 |
commit | d934827bf44b7cfcf6711964418148fa60877668 (patch) | |
tree | 0625f358789b5e015e49db139cc1dbc9be00428f /sys-boot/yaboot/files | |
parent | 2e34d110f164bf74d55fced27fe0000201b3eec5 (diff) |
gentoo resync : 25.11.2020
Diffstat (limited to 'sys-boot/yaboot/files')
-rw-r--r-- | sys-boot/yaboot/files/sysfs-ofpath.patch | 105 | ||||
-rw-r--r-- | sys-boot/yaboot/files/yaboot-1.3.16-memalign.patch | 41 | ||||
-rw-r--r-- | sys-boot/yaboot/files/yaboot-nopiessp-gcc4.patch | 38 |
3 files changed, 0 insertions, 184 deletions
diff --git a/sys-boot/yaboot/files/sysfs-ofpath.patch b/sys-boot/yaboot/files/sysfs-ofpath.patch deleted file mode 100644 index 7ebc0bfac86f..000000000000 --- a/sys-boot/yaboot/files/sysfs-ofpath.patch +++ /dev/null @@ -1,105 +0,0 @@ ---- ybin/ofpath 2008-08-03 04:00:35.000000000 -0400 -+++ ybin/ofpath 2009-01-09 13:46:12.000000000 -0500 -@@ -337,15 +337,18 @@ - - ide_ofpath() - { -- if [ ! -L "/proc/ide/$DEVNODE" ] ; then -+ if [ ! -L "/proc/ide/$DEVNODE" ] && [ ! -e "/sys/block/$DEVNODE" ] ; then - echo 1>&2 "$PRG: /dev/$DEVNODE: Device not configured" - return 1 - fi - -- local IDEBUS="$(v=`readlink /proc/ide/$DEVNODE` ; echo ${v%%/*} )" -- if [ -z "$IDEBUS" ] ; then -- echo 1>&2 "$PRG: BUG: IDEBUS == NULL" -- return 1 -+ if [ -L "/proc/ide/$DEVNODE" ] ; then -+ local USE_OLD_PROC=1 -+ local IDEBUS="$(v=`readlink /proc/ide/$DEVNODE` ; echo ${v%%/*} )" -+ if [ -z "$IDEBUS" ] ; then -+ echo 1>&2 "$PRG: BUG: IDEBUS == NULL" -+ return 1 -+ fi - fi - - case "$(uname -r)" in -@@ -363,7 +366,8 @@ - echo 1>&2 "$PRG: Unable to determine sysfs mountpoint" - return 1 - fi -- local OF1275IDE="${SYS}/block/${DEVNODE}/device/../../devspec" -+ local OF1275IDE=$(cd -P "${SYS}/block/${DEVNODE}/device" && pwd) -+ OF1275IDE="${OF1275IDE}/../../devspec" - ;; - *) - local OF1275IDE="/proc/ide/$IDEBUS/devspec" -@@ -402,34 +406,41 @@ - return 1 - fi - -- if [ ! -f "/proc/ide/${IDEBUS}/channel" ] ; then -- echo 1>&2 "$PRG: KERNEL BUG: /proc/ide/${IDEBUS}/channel does not exist" -- return 1 -- fi -- -- case "$(cat /proc/device-tree${DEVSPEC}/device_type 2> /dev/null)" in -- ide|ata) -- local MASTER="/disk@0" -- local SLAVE="/disk@1" -- ;; -- pci-ide|pci-ata) -- local MASTER="/@$(cat /proc/ide/${IDEBUS}/channel)/disk@0" -- local SLAVE="/@$(cat /proc/ide/${IDEBUS}/channel)/disk@1" -- ;; -- scsi) ## some lame controllers pretend they are scsi, hopefully all kludges are created equal. -- local MASTER="/@$(($(cat /proc/ide/${IDEBUS}/channel) * 2 + 0))" -- local SLAVE="/@$(($(cat /proc/ide/${IDEBUS}/channel) * 2 + 1))" -- ;; -- spi) -- local MASTER="/disk@$(cat /proc/ide/${IDEBUS}/channel),0" -- local SLAVE="/disk@$(cat /proc/ide/${IDEBUS}/channel),1" -- ;; -- *) -- echo 1>&2 "$PRG: Unsupported IDE device type: \"$(cat /proc/device-tree${DEVSPEC}/device_type 2> /dev/null)\"" -- return 1 -- ;; -- esac -+ -+ if [ "${USE_OLD_PROC}" = "1" ] ; then -+ if [ ! -f "/proc/ide/${IDEBUS}/channel" ] ; then -+ echo 1>&2 "$PRG: KERNEL BUG: /proc/ide/${IDEBUS}/channel does not exist" -+ return 1 -+ fi - -+ case "$(cat /proc/device-tree${DEVSPEC}/device_type 2> /dev/null)" in -+ ide|ata) -+ local MASTER="/disk@0" -+ local SLAVE="/disk@1" -+ ;; -+ pci-ide|pci-ata) -+ local MASTER="/@$(cat /proc/ide/${IDEBUS}/channel)/disk@0" -+ local SLAVE="/@$(cat /proc/ide/${IDEBUS}/channel)/disk@1" -+ ;; -+ scsi) ## some lame controllers pretend they are scsi, hopefully all kludges are created equal. -+ local MASTER="/@$(($(cat /proc/ide/${IDEBUS}/channel) * 2 + 0))" -+ local SLAVE="/@$(($(cat /proc/ide/${IDEBUS}/channel) * 2 + 1))" -+ ;; -+ spi) -+ local MASTER="/disk@$(cat /proc/ide/${IDEBUS}/channel),0" -+ local SLAVE="/disk@$(cat /proc/ide/${IDEBUS}/channel),1" -+ ;; -+ *) -+ echo 1>&2 "$PRG: Unsupported IDE device type: \"$(cat /proc/device-tree${DEVSPEC}/device_type 2> /dev/null)\"" -+ return 1 -+ ;; -+ esac -+ else -+ ### I don't know what other disks would look like... FIXME -+ local MASTER="/disk@0" -+ local SLAVE="/disk@1" -+ fi -+ - case "$DEVNODE" in - hda|hdc|hde|hdg|hdi|hdk|hdm|hdo) - echo "${DEVSPEC}${MASTER}:$PARTITION" diff --git a/sys-boot/yaboot/files/yaboot-1.3.16-memalign.patch b/sys-boot/yaboot/files/yaboot-1.3.16-memalign.patch deleted file mode 100644 index 0fe4e250f292..000000000000 --- a/sys-boot/yaboot/files/yaboot-1.3.16-memalign.patch +++ /dev/null @@ -1,41 +0,0 @@ -diff -uNr yaboot/lib/malloc.c yaboot-1.3.16//lib/malloc.c ---- yaboot/lib/malloc.c 2010-07-09 03:18:17.000000000 +0100 -+++ yaboot-1.3.16//lib/malloc.c 2011-01-23 16:57:13.000000000 +0000 -@@ -42,6 +42,37 @@ - last_alloc = 0; - } - -+static char *align_ptr_to(char *ptr, unsigned long align) -+{ -+ return (char *)((((unsigned long)ptr) + (align - 1UL)) & -+ ~(align - 1UL)); -+} -+ -+int posix_memalign(void **memptr, unsigned long alignment, unsigned long size) -+{ -+ char *caddr; -+ -+ if (alignment & (alignment - 1UL)) -+ return -1; -+ -+ if (alignment & (sizeof(void *) - 1UL)) -+ return -1; -+ -+ if (size == 0) -+ { -+ *memptr = (void *)0; -+ return 0; -+ } -+ -+ caddr = align_ptr_to(malloc_ptr, alignment); -+ malloc_ptr = (caddr + size); -+ last_alloc = caddr; -+ malloc_ptr = align_ptr_to(malloc_ptr, 8UL); -+ -+ *memptr = caddr; -+ return 0; -+} -+ - void *malloc (unsigned int size) - { - char *caddr; diff --git a/sys-boot/yaboot/files/yaboot-nopiessp-gcc4.patch b/sys-boot/yaboot/files/yaboot-nopiessp-gcc4.patch deleted file mode 100644 index ed1755b72b33..000000000000 --- a/sys-boot/yaboot/files/yaboot-nopiessp-gcc4.patch +++ /dev/null @@ -1,38 +0,0 @@ -disable ssp usage in yaboot itself - -unfortunately, since we link against external libs that themselves were built -with ssp turned on, we have to provide stubs to keep the linking from failing - ---- yaboot-1.3.13/Config.gentoo -+++ yaboot-1.3.13/Config.gentoo -@@ -0,0 +1,6 @@ -+check_gcc=$(shell if $(CC) $(1) -S -o /dev/null -xc /dev/null > /dev/null 2>&1; \ -+ then echo "$(1)"; else echo "$(2)"; fi) -+ -+CFLAGS += $(call check_gcc, -fno-stack-protector) -+CFLAGS += $(call check_gcc, --nopie) -+ ---- yaboot-1.3.13/Makefile -+++ yaboot-1.3.13/Makefile -@@ -1,6 +1,7 @@ - ## Setup - - include Config -+include Config.gentoo - - VERSION = 1.3.13 - # Debug mode (spam/verbose) -@@ -79,7 +80,7 @@ HOSTCFLAGS = -O2 $(CFLAGS) -Wall -I/usr/ - OBJS = second/crt0.o second/yaboot.o second/cache.o second/prom.o second/file.o \ - second/partition.o second/fs.o second/cfg.o second/setjmp.o second/cmdline.o \ - second/fs_of.o second/fs_ext2.o second/fs_iso.o second/iso_util.o \ -- lib/nosys.o lib/string.o lib/strtol.o lib/vsprintf.o lib/ctype.o lib/malloc.o lib/strstr.o -+ lib/nosys.o lib/string.o lib/strtol.o lib/vsprintf.o lib/ctype.o lib/malloc.o lib/strstr.o lib/ssp.o - - ifeq ($(USE_MD5_PASSWORDS),y) - OBJS += second/md5.o ---- yaboot-1.3.14/lib/ssp.c -+++ yaboot-1.3.14/lib/ssp.c -@@ -0,0 +1,2 @@ -+void __stack_chk_fail(void) {} -+void __stack_chk_fail_local(void) {} |