NetBSD-Bugs archive

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

Re: install/55929: ``build.sh install-image'' doesn't work with KERNEL_DIR=yes



The following reply was made to PR install/55929; it has been noted by GNATS.

From: Paul Goyette <paul%whooppee.com@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: christos%netbsd.org@localhost
Subject: Re: install/55929: ``build.sh install-image'' doesn't work with
 KERNEL_DIR=yes
Date: Thu, 24 Apr 2025 12:45:23 -0700 (PDT)

 OK, I finally figured out where the kernel-set files were going...
 
 In $SRCDIR/etc/Makefile we have at line 647
 
  	...
  			if [ ${KERNEL_DIR} = "yes" ]; then \
  				mv $${kern_tgz} ..; \
  			fi; \
  		} \
  	...
 
 The ``mv'' command moves the kernel-set file out of the $RELEASEDIR
 completely, and the subsequent usage of the kernel-set by the image
 code fails to find the file.
 
 It's not clear to me why we want to move the file, and it is even
 less clear why it is being moved back into the $OBJDIR hierarchy
 (the ``mv'' command executes with its working directory set to
 $OBJDIR/amd64/sys/arch/amd64/compile/$CONFIG/kernel$)
 
 Furthermore, the kernel-set files are not cleaned up, so an update
 build will fail when trying to move a new kern-set file into the
 $OBJDIR location (as previously reported).
 
 
 +---------------------+--------------------------+----------------------+
 | Paul Goyette (.sig) | PGP Key fingerprint:     | E-mail addresses:    |
 | (Retired)           | 1B11 1849 721C 56C8 F63A | paul%whooppee.com@localhost    |
 | Software Developer  | 6E2E 05FD 15CE 9F2D 5102 | pgoyette%netbsd.org@localhost  |
 | & Network Engineer  |                          | pgoyette99%gmail.com@localhost |
 +---------------------+--------------------------+----------------------+
 


Home | Main Index | Thread Index | Old Index