NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

port-arm/53699: build.sh -m evbarm64-el release fail when RELEASEMACHINEDIR was set.



>Number:         53699
>Category:       port-arm
>Synopsis:       build.sh -m evbarm64-el release fail when RELEASEMACHINEDIR was set.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    port-arm-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 04 14:25:00 +0000 2018
>Originator:     Yasushi Oshima
>Release:        netbsd-current aarch64 8.99.25
>Organization:
>Environment:
NetBSD sudachi 8.0_STABLE NetBSD 8.0_STABLE (GENERIC) #0: Sat Nov  3 21:07:55 JST 2018  oshima@sudachi:/export/netbsd-8/20181103/obj/amd64/sys/arch/amd64/compile/GENERIC amd64
>Description:
Build failed aarch64 (evbarm64-el) release with RELEASEMACHINEDIR variable.

./build.sh -m evbarm64-el -V RELEASEMACHINEDIR=evbarm64-el .... release

(snip)

/export/current/tools/evbarm64-el/bin/aarch64--netbsd-install -c -p -r -m 444 bootaa64.efi  /export/current/release/evbarm/installation/misc
aarch64--netbsd-install: /export/current/release/evbarm/installation/misc.inst.lGaKpZ: mkstemp: No such file or directory
*** [release] Error code 1
nbmake[2]: stopped in /usr/src/sys/stand/efiboot/bootaa64
1 error
nbmake[2]: stopped in /usr/src/sys/stand/efiboot/bootaa64
*** [smp_efibootaa64] Error code 2

RELEASEMACHINEDIR was set but MACHINE was used in install bootaa64.efi.

>How-To-Repeat:
$ cd /usr/src
$ ./build.sh -m evbarm64-el -V RELEASEMACHINEDIR=evbarm64-el release

>Fix:
Use ${RELEASEMACHINEDIR} instead of ${MACHINE} in sys/stand/efiboot/bootaa64/Makefile.


diff --git a/sys/stand/efiboot/bootaa64/Makefile b/sys/stand/efiboot/bootaa64/Makefile
index 5e12a6b139c1..9392765f3a67 100644
--- a/sys/stand/efiboot/bootaa64/Makefile
+++ b/sys/stand/efiboot/bootaa64/Makefile
@@ -17,4 +17,4 @@ CFLAGS+=      -DEFIBOOT_ACPI

 release: check_RELEASEDIR
        ${HOST_INSTALL_FILE} -m ${BINMODE} ${PROG} \
-               ${RELEASEDIR}/${MACHINE}/installation/misc
+               ${RELEASEDIR}/${RELEASEMACHINEDIR}/installation/misc




Home | Main Index | Thread Index | Old Index