Skip to content
Snippets Groups Projects
meson.build 442 B
Newer Older
rahix's avatar
rahix committed
elf = executable(
  name + '.elf',
  'main.c',
  'image/image.c',
  'image/image2.c',
  dependencies: [libcard10, max32665_startup],
  link_whole: [max32665_startup_lib, board_card10_lib],
  link_args: [
    '-Wl,-Map=' + meson.current_build_dir() + '/' + name + '.map',
  ],
)
rahix's avatar
rahix committed

custom_target(
  name + '.bin',
  build_by_default: true,
  output: name + '.bin',
  input: elf,
  command: [build_image, '@INPUT@', '@OUTPUT0@'],
)