From c9ccdf877a6a5af54ac8b6d2809361ed1ddcc221 Mon Sep 17 00:00:00 2001 From: Markus Kaindl Date: Wed, 21 Mar 2012 02:19:04 +0100 Subject: 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 Signed-off-by: Peter Korsgaard --- linux/linux.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'linux') diff --git a/linux/linux.mk b/linux/linux.mk index c0334d2b7..6cb1efc86 100644 --- a/linux/linux.mk +++ b/linux/linux.mk @@ -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 -- cgit v1.2.3