* [Buildroot] [PATCH] linux.mk: .ub-File copying after building initramfs
@ 2012-03-21 1:19 Markus Kaindl
2012-03-21 10:44 ` Peter Korsgaard
0 siblings, 1 reply; 2+ messages in thread
From: Markus Kaindl @ 2012-03-21 1:19 UTC (permalink / raw)
To: buildroot
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 <markus.kaindl@stusta.mhn.de>
---
linux/linux.mk | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/linux/linux.mk b/linux/linux.mk
index 2a29de8..2fb890e 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
--
1.7.3.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-03-21 10:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-21 1:19 [Buildroot] [PATCH] linux.mk: .ub-File copying after building initramfs Markus Kaindl
2012-03-21 10:44 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox