summaryrefslogtreecommitdiff
path: root/payloads/libpayload
diff options
context:
space:
mode:
authorJakub Czapiga <jacz@semihalf.com>2021-12-06 13:03:56 +0000
committerPatrick Georgi <patrick@coreboot.org>2021-12-08 14:42:02 +0000
commit0b25e00ab1ea70a3199bf4fff7f35ab9ab8e9acf (patch)
tree4aa592bf52bcdc19b266d4a7fcd6f776c75789c3 /payloads/libpayload
parent0365fc81860a2fa1b60bc64cece0af1a61f12105 (diff)
libpayload: Add include/commonlib/bsd to installed headers
Copy header files from the main commonlib/bsd to libpayload output installation directory. Change-Id: Idc7175240f3077ec98280331f9a952310aae4341 Signed-off-by: Jakub Czapiga <jacz@semihalf.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/59916 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <patrick@coreboot.org>
Diffstat (limited to 'payloads/libpayload')
-rw-r--r--payloads/libpayload/Makefile.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/payloads/libpayload/Makefile.inc b/payloads/libpayload/Makefile.inc
index 2332517cef..0e903643fc 100644
--- a/payloads/libpayload/Makefile.inc
+++ b/payloads/libpayload/Makefile.inc
@@ -116,6 +116,11 @@ install: real-target
install -m 755 -d $(DESTDIR)/libpayload/`dirname $$file`; \
install -m 644 $$file $(DESTDIR)/libpayload/$$file; \
done
+ for file in `find $(coreboottop)/src/commonlib/bsd/include -name *.h -type f`; do \
+ dest_file=$$(realpath --relative-to=$(coreboottop)/src/commonlib/bsd/ $$file); \
+ install -m 755 -d "$(DESTDIR)/libpayload/`dirname $$dest_file`"; \
+ install -m 644 "$$file" "$(DESTDIR)/libpayload/$$dest_file"; \
+ done
install -m 644 $(obj)/libpayload-config.h $(DESTDIR)/libpayload/include
$(foreach item,$(includes), \
install -m 755 -d $(DESTDIR)/libpayload/include/$(call extract_nth,2,$(item)); \