Skip to contentSkip to conversation

linux.mk: .ub-File copying after building initramfs

PATCH New Markus Kaindl 2 participants 2 messages Mar 21, 2012

lore
Share & tools
lore
#0 lore raw

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

---
 linux/linux.mk |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
linux/linux.mk +1 -1
index 2a29de8..2fb890e 100644
@@ -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
#1 lore raw

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