diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2021-06-04 10:46:52 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2021-06-09 12:20:05 +0200 |
commit | b73df16d428ed1a0bc35f6f9e96cf6603210a4a5 (patch) | |
tree | 742c821aa628a80b7087cc85ac972df77f1560ab /images | |
parent | 7689055a8b037363dae840eee33a0ed43f905b7a (diff) | |
download | barebox-b73df16d428ed1a0bc35f6f9e96cf6603210a4a5.tar.gz barebox-b73df16d428ed1a0bc35f6f9e96cf6603210a4a5.tar.xz |
kbuild: add install target
For CI, it would be useful to have the barebox build install the
artifacts into a directory. Add an install target that does this.
Example usage: make install INSTALL_PATH=install/
Unlike Linux, we don't set INSTALL_PATH to a default value, because
most barebox-enabled boards don't have barebox in a file system.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20210604084704.17410-2-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'images')
-rw-r--r-- | images/Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/images/Makefile b/images/Makefile index ee1347f6b6..c185982c17 100644 --- a/images/Makefile +++ b/images/Makefile @@ -204,6 +204,11 @@ images: $(image-y-path) $(flash-link) $(flash-list) FORCE @echo "images built:" @for i in $(image-y); do echo $$i; done +__images_install: images + @for i in $(image-y-path); do install -t "$(INSTALL_PATH)" $$i; done + +PHONY += __images_install + $(flash-link): $(link-dest) FORCE $(call if_changed,ln) |