Skip to content

Commit

Permalink
STASH
Browse files Browse the repository at this point in the history
  • Loading branch information
d4nuu8 committed Jan 22, 2025
1 parent 003d070 commit c2ec953
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
9 changes: 7 additions & 2 deletions bootloader/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ dependencies = []

if kconfig.has_key('CONFIG_UBOOT')
sources += 'uboot.c'

if kconfig.has_key('CONFIG_BOOTLOADER_STATIC_LINKED')
# TODO Use dependency() as soon as meson 0.63 can be used
dependencies += cc.find_library('ubootenv', required: true, static: true)
endif
endif

if kconfig.has_key('CONFIG_BOOTLOADER_NONE')
Expand All @@ -20,15 +25,15 @@ if kconfig.has_key('CONFIG_BOOTLOADER_EBG')
sources += 'ebg.c'

if kconfig.has_key('CONFIG_BOOTLOADER_STATIC_LINKED')
dependencies += dependency('libebgenv', required: true)
dependencies += dependency('libebgenv', required: true, static: true)
endif
endif

if kconfig.has_key('CONFIG_BOOTLOADER_CBOOT')
sources += 'cboot.c'

if kconfig.has_key('CONFIG_BOOTLOADER_STATIC_LINKED')
dependencies += dependency('tegra-boot-tools', required: true)
dependencies += dependency('tegra-boot-tools', required: true, static: true)
endif
endif

Expand Down
9 changes: 8 additions & 1 deletion core/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,14 @@ sources = [
'util.c',
]

ubootenv_lib = cc.find_library('ubootenv', required: true)
# ubootenv_lib = cc.find_library('ubootenv', required: true)
if kconfig.has_key('CONFIG_BOOTLOADER_STATIC_LINKED')
# TODO Use dependency() as soon as meson 0.63 can be used
ubootenv_lib = [
cc.find_library('ubootenv', required: true, static: true),
cc.find_library('yaml', required: true, static: true),
]
endif

dependencies = [json_dep, ubootenv_lib]

Expand Down

0 comments on commit c2ec953

Please sign in to comment.