aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2016-05-23 15:29:22 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2016-05-23 15:29:22 +0000
commit56c1f95f8b694e5a8ee823fd3d422e8a47dc0f02 (patch)
tree768e2e13177360ba194736953a7f89afb801085e
parenteeb42ee7eb5e47a2f58daa05315919f141c61212 (diff)
downloadalpine-iso-56c1f95f8b694e5a8ee823fd3d422e8a47dc0f02.tar.bz2
alpine-iso-56c1f95f8b694e5a8ee823fd3d422e8a47dc0f02.tar.xz
fix armhf release
build image even if overlays is missing
-rwxr-xr-xMakefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 0d2e64f..08603b2 100755
--- a/Makefile
+++ b/Makefile
@@ -449,7 +449,11 @@ $(RPI_TAR_GZ): $(ALL_MODLOOP) $(ALL_INITFS) $(ALL_ISO_KERNEL) $(ISO_REPOS_DIRSTA
echo -en "include usercfg.txt\n" >> $(RPI_TEMP)/config.txt
cp -r $(ISO_DIR)/apks $(RPI_TEMP)/
cp -a $(DESTDIR)/modloop.*/tmp/usr/lib/linux-*-rpi*/*.dtb $(RPI_TEMP)/
- cp -a $(DESTDIR)/modloop.*/tmp/usr/lib/linux-*-rpi*/overlays $(RPI_TEMP)/
+ for i in $(DESTDIR)/modloop.*/tmp/usr/lib/linux-*-rpi*/overlays; do \
+ if [ -e "$$i" ]; then \
+ cp -a "$$i" $(RPI_TEMP)/; \
+ fi; \
+ done
tar czf $(RPI_TAR_GZ) -C "$(RPI_TEMP)" .
release_targets := $(RPI_TAR_GZ)