diff options
author | Idwer Vollering <vidwer@gmail.com> | 2021-05-10 21:15:45 +0200 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-05-20 10:31:43 +0000 |
commit | b384db34664466386016b03615fe1387aa2d53c7 (patch) | |
tree | 11192e23da45b41982aecb45ea74f274f6d697a0 /Makefile | |
parent | 6bdfa02d7dccfbc94871bf50f2282e2081b8559c (diff) | |
download | vboot-b384db34664466386016b03615fe1387aa2d53c7.tar.gz |
portability fixes: support building vboot on OpenBSDstabilize-13983.Bstabilize-13982.88.Bstabilize-13982.82.Bstabilize-13982.70.Bstabilize-13982.69.Bstabilize-13982.60.Bstabilize-13982.51.Brelease-R92-13982.B
This was done on OpenBSD 6.8.
Required packages are: e2fsprogs and gcc.
Change-Id: I86ec080e1ddb90053d81f1edd17d3406e7e737c6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/2903352
Reviewed-by: Patrick Georgi <pgeorgi@chromium.org>
Tested-by: Patrick Georgi <pgeorgi@chromium.org>
Commit-Queue: Patrick Georgi <pgeorgi@chromium.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -373,6 +373,9 @@ INCLUDES += \ ifeq (${FIRMWARE_ARCH},) INCLUDES += -Ihost/include -Ihost/lib/include INCLUDES += -Ihost/lib21/include +ifeq ($(shell uname -s), OpenBSD) +INCLUDES += -I/usr/local/include +endif endif # Firmware library, used by the other firmware components (depthcharge, @@ -963,6 +966,8 @@ cgpt: ${CGPT} $(if ${GPT_SPI_NOR},cgpt_wrapper) # on FreeBSD: install misc/e2fsprogs-libuuid from ports, # or e2fsprogs-libuuid from its binary package system. +# on OpenBSD: install sysutils/e2fsprogs from ports, +# or e2fsprogs from its binary package system, to install uuid/uid.h ${CGPT}: LDLIBS += -luuid ${CGPT}: ${CGPT_OBJS} ${UTILLIB} @@ -1138,6 +1143,9 @@ CRYPTO_LIBS := $(shell ${PKG_CONFIG} --libs libcrypto) ifeq ($(shell uname -s), FreeBSD) CRYPTO_LIBS += -lcrypto endif +ifeq ($(shell uname -s), OpenBSD) +LDFLAGS += -Wl,-z,notext +endif ${BUILD}/utility/dumpRSAPublicKey: LDLIBS += ${CRYPTO_LIBS} ${BUILD}/utility/pad_digest_utility: LDLIBS += ${CRYPTO_LIBS} |