Skip to content

Fix ATF: add openssl-native dependency - #20

Merged
tomazzaman merged 1 commit into
we-are-mono:masterfrom
lmchale:atf_fix-openssl-native
Aug 5, 2026
Merged

Fix ATF: add openssl-native dependency#20
tomazzaman merged 1 commit into
we-are-mono:masterfrom
lmchale:atf_fix-openssl-native

Conversation

@lmchale

@lmchale lmchale commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

Fixes ATF dependency on native openssl libraries. Likely occurs when build system is missing openssl-dev package. My build system was a fresh ubuntu24 canonical container.

Related build log:

| NOTE: make -j 16 HOSTCC=gcc  HOSTCFLAGS=-isystem/home/ubuntu/meta-mono.git/build/tmp/work/cortexa72-oe-linux/atf/git/recipe-sysroot-native/usr/include -O2 -pipe HOSTCPPFLAGS=-isystem/home/ubuntu/meta-mono.git/build/tmp/work/cortexa72-oe-linux/atf/git/recipe-sysroot-native/usr/include HOSTLDFLAGS=-L/home/ubuntu/meta-mono.git/build/tmp/work/cortexa72-oe-linux/atf/git/recipe-sysroot-native/usr/lib                         -L/home/ubuntu/meta-mono.git/build/tmp/work/cortexa72-oe-linux/atf/git/recipe-sysroot-native/lib                         -Wl,--enable-new-dtags                         -Wl,-rpath-link,/home/ubuntu/meta-mono.git/build/tmp/work/cortexa72-oe-linux/atf/git/recipe-sysroot-native/usr/lib                         -Wl,-rpath-link,/home/ubuntu/meta-mono.git/build/tmp/work/cortexa72-oe-linux/atf/git/recipe-sysroot-native/lib                         -Wl,-rpath,/home/ubuntu/meta-mono.git/build/tmp/work/cortexa72-oe-linux/atf/git/recipe-sysroot-native/usr/lib                         -Wl,-rpath,/home/ubuntu/meta-mono.git/build/tmp/work/cortexa72-oe-linux/atf/git/recipe-sysroot-native/lib                         -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/ubuntu/meta-mono.git/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 -pthread pbl fip PLAT=gateway_dk BOOT_MODE=qspi DEBUG=0 LOG_LEVEL=20 RCW=/home/ubuntu/meta-mono.git/build/tmp/deploy/images/gateway-dk/rcw/gateway_dk/NN_FFSSPSNP_1133_5A06/rcw_2100_qspiboot.bin BL33=/home/ubuntu/meta-mono.git/build/tmp/deploy/images/gateway-dk/u-boot.bin
|   MD      /home/ubuntu/meta-mono.git/build/tmp/work/cortexa72-oe-linux/atf/git/sources/atf-git/build/gateway_dk/release/bl2
|   MD      /home/ubuntu/meta-mono.git/build/tmp/work/cortexa72-oe-linux/atf/git/sources/atf-git/build/gateway_dk/release/bl2/bl2
|   MD      /home/ubuntu/meta-mono.git/build/tmp/work/cortexa72-oe-linux/atf/git/sources/atf-git/build/gateway_dk/release/libc
|   MD      /home/ubuntu/meta-mono.git/build/tmp/work/cortexa72-oe-linux/atf/git/sources/atf-git/build/gateway_dk/release/lib
|   MD      /home/ubuntu/meta-mono.git/build/tmp/work/cortexa72-oe-linux/atf/git/sources/atf-git/build/gateway_dk/release/bl31
|   MD      /home/ubuntu/meta-mono.git/build/tmp/work/cortexa72-oe-linux/atf/git/sources/atf-git/build/gateway_dk/release/bl31/bl31
|   CC      bl2/aarch64/bl2_arch_setup.c
|   CC      bl2/bl2_image_load_v2.c
|   CC      bl2/bl2_main.c
|   CC      common/bl_common.c
|   CC      common/desc_image_load.c
|   CC      common/tf_log.c
|   CC      drivers/arm/cci/cci.c
|   CC      drivers/arm/tzc/tzc400.c
|   CC      drivers/console/multi_console.c
|   CC      drivers/delay_timer/delay_timer.c
|   CC      drivers/io/io_fip.c
|   CC      drivers/io/io_memmap.c
|   CC      drivers/io/io_storage.c
|   CC      drivers/nxp/console/console_16550.c
|   CC      drivers/nxp/crypto/caam/src/caam.c
|   CC      drivers/nxp/crypto/caam/src/hw_key_blob.c
|   CC      drivers/nxp/crypto/caam/src/jobdesc.c
|   CC      drivers/nxp/crypto/caam/src/rng.c
|   CC      drivers/nxp/crypto/caam/src/sec_hw_specific.c
|   CC      drivers/nxp/crypto/caam/src/sec_jr_driver.c
|   CC      drivers/nxp/csu/csu.c
|   CC      drivers/nxp/dcfg/dcfg.c
|   CC      drivers/nxp/ddr/nxp-ddr/ddr.c
|   CC      drivers/nxp/ddr/nxp-ddr/ddrc.c
|   CC      drivers/nxp/ddr/nxp-ddr/dimm.c
|   CC      drivers/nxp/ddr/nxp-ddr/regs.c
|   CC      drivers/nxp/ddr/nxp-ddr/utility.c
|   CC      drivers/nxp/ddr/phy-gen1/phy.c
|   CC      drivers/nxp/i2c/i2c.c
|   CC      drivers/nxp/interconnect/ls_cci.c
|   CC      drivers/nxp/pmu/pmu.c
|   CC      drivers/nxp/qspi/qspi.c
|   HOSTCC  fiptool.c
|   HOSTCC  tbbr_config.c
|   CC      drivers/nxp/timer/nxp_timer.c
|   HOSTCC  plat_fiptool/nxp//plat_def_uuid_config.c
|   CC      drivers/nxp/tzc/plat_tzc400.c
|   CC      lib/compiler-rt/builtins/popcountdi2.c
| In file included from fiptool.h:16,
|                  from fiptool.c:23:
| fiptool_platform.h:19:11: fatal error: openssl/sha.h: No such file or directory
|    19 | # include <openssl/sha.h>
|       |           ^~~~~~~~~~~~~~~
| compilation terminated.
|   CC      lib/compiler-rt/builtins/popcountsi2.c
| make[1]: *** [Makefile:83: fiptool.o] Error 1
| make[1]: *** Waiting for unfinished jobs....
|   CC      lib/extensions/pmuv3/aarch64/pmuv3.c
| make: *** [Makefile:1732: tools/fiptool/fiptool] Error 2
| make: *** Waiting for unfinished jobs....
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
ERROR: Task (/home/ubuntu/meta-mono.git/build/../recipes-bsp/atf/atf_git.bb:do_compile) failed with exit code '1'

@lmchale lmchale changed the title Fix ATF: add openss-native dependency Fix ATF: add openssl-native dependency Jul 18, 2026
# Fix issue w/ missing paths to host toolchain and openssl-native
EXTRA_OEMAKE += "\
host-cc='${BUILD_CC}' \
OPENSSL_DIR='${RECIPE_SYSROOT_NATIVE}/usr' \

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI: I fixed it this way: 917991e

@tomazzaman
tomazzaman merged commit 968a0d9 into we-are-mono:master Aug 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants