From effe49bdb9788c6ead3c0225e565bebc925abaca Mon Sep 17 00:00:00 2001 From: jhibbits Date: Fri, 20 Sep 2019 13:35:28 +0000 Subject: [PATCH] powerpc/loader: Install ubldr without stripping Summary: Install's strip capability, by way of strip(1), doesn't seem to work correctly on msdosfs, and instead ends up truncating the resulting binary to 0-length. As a workaround, don't strip ubldr(8). This fixes installworld on Book-E ubldr-based platforms, which prior to this would need to manually install ubldr separately after installworld, in order to have a functional ubldr. The same thing could be done on PowerNV platforms that use msdosfs /boot volumes, since loader and loader.kboot, etc, all get truncated to 0 on install. However, PowerNV does not use loader, instead loading from petitboot, so it's not really necessary at this time. Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D21725 --- stand/powerpc/uboot/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/stand/powerpc/uboot/Makefile b/stand/powerpc/uboot/Makefile index 9124507397ad..0a26152483d9 100644 --- a/stand/powerpc/uboot/Makefile +++ b/stand/powerpc/uboot/Makefile @@ -13,6 +13,7 @@ LOADER_BZIP2_SUPPORT?= no BINDIR= /boot/uboot PROG= ubldr +STRIP= NEWVERSWHAT= "U-Boot loader" ${MACHINE_ARCH} INSTALLFLAGS= -b