linux.mk: .ub-File copying after building initramfs
PATCH 1/1 linux.mk: .ub-File copying after building initramfs
test should exit with Exit-Code 0 if no .ub-File present and copy the file if Exit-Code 1, otherwise make fails
Signed-off-by Markus Kaindl <[email protected]>
--- linux/linux.mk | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
linux/linux.mk +1 -1
@@ -230,7 +230,7 @@ $(LINUX_DIR)/.stamp_initramfs_rebuilt: $(LINUX_DIR)/.stamp_target_installed $(LI # Copy the kernel image to its final destination cp $(LINUX_IMAGE_PATH) $(BINARIES_DIR) # If there is a .ub file copy it to the final destination - test -f $(LINUX_IMAGE_PATH).ub && cp $(LINUX_IMAGE_PATH).ub $(BINARIES_DIR) + test ! -f $(LINUX_IMAGE_PATH).ub || cp $(LINUX_IMAGE_PATH).ub $(BINARIES_DIR) $(Q)touch $@ # The initramfs building code must make sure this target gets called
Signature · 1 line
1.7.3.4
PATCH 1/1 linux.mk: .ub-File copying after building initramfs
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Markus" == Markus Kaindl <[email protected]> writes:
Markus> test should exit with Exit-Code 0 if no .ub-File present and copy the Markus> file if Exit-Code 1, otherwise make fails
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard