[bootlin/training-materials updates] master: Makefile: copy symbolic links when creating lab-data archive (5096e1da)
Michael Opdenacker
michael.opdenacker at bootlin.com
Thu Mar 16 10:07:10 CET 2023
Repository : https://github.com/bootlin/training-materials
On branch : master
Link : https://github.com/bootlin/training-materials/commit/5096e1daf83dab2875fbb156a519fe2b42af5988
>---------------------------------------------------------------
commit 5096e1daf83dab2875fbb156a519fe2b42af5988
Author: Michael Opdenacker <michael.opdenacker at bootlin.com>
Date: Thu Mar 16 10:07:10 2023 +0100
Makefile: copy symbolic links when creating lab-data archive
This way, we can have symbolic links in the sources,
to share files between several lab variants (such as
"embedded-linux", "embedded-linux-bbb" and "embedded-linux-qemu").
That's better than keeping multiple copies of the same file
in the sources, which may go out-of-sync if a contributor
doesn't notice they are supposed to be the same.
Tested on the embedded-linux-bbb-labs.tar.xz archive.
Signed-off-by: Michael Opdenacker <michael.opdenacker at bootlin.com>
Reported-by: Amir Farahani Khojasteh <amfa00001 at stud.uni-saarland.de>
>---------------------------------------------------------------
5096e1daf83dab2875fbb156a519fe2b42af5988
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 0a1ee604..f7a0236e 100644
--- a/Makefile
+++ b/Makefile
@@ -226,7 +226,7 @@ endif
%-labs.tar.xz:
rm -rf $(OUT_LAB_DATA)
mkdir -p $(OUT_LAB_DATA)
- rsync --exclude=.git -a -k --delete lab-data/$(LAB_DATA)/ $(OUT_LAB_DATA)
+ rsync --exclude=.git -a -k --delete --copy-links lab-data/$(LAB_DATA)/ $(OUT_LAB_DATA)
fakeroot common/process-lab-data.sh $(OUT_LAB_DATA)
find $(OUT_LAB_DATA) -name '*.xz' -exec unxz {} \;
(cd $(OUTDIR); tar Jcf $@ $(LAB_DATA)-labs)
More information about the training-materials-updates
mailing list