Miguel Osorio | 03f2e23 | 2019-09-17 19:44:37 -0700 | [diff] [blame] | 1 | # Copyright lowRISC contributors. |
| 2 | # Licensed under the Apache License, Version 2.0, see LICENSE for details. |
| 3 | # SPDX-License-Identifier: Apache-2.0 |
| 4 | |
Miguel Osorio | ae67f6b | 2019-10-18 18:56:08 -0700 | [diff] [blame] | 5 | subdir('lib') |
Miguel Young de la Sota | 1d0f8eb | 2019-11-20 14:39:40 -0600 | [diff] [blame] | 6 | subdir('exts') |
| 7 | |
| 8 | # Arguments for custom_target, for converting a linked .elf file into .bin and .vmem |
| 9 | # files (plus a disassembled .dis file). |
| 10 | # |
| 11 | # These definitions should only be available to directories which define executables. |
Greg Chadwick | 1287104 | 2020-04-20 13:42:56 +0100 | [diff] [blame] | 12 | make_embedded_target_outputs = ['@BASENAME@.bin', '@BASENAME@.dis', '@BASENAME@.32.vmem', '@BASENAME@.64.vmem'] |
Miguel Young de la Sota | 1d0f8eb | 2019-11-20 14:39:40 -0600 | [diff] [blame] | 13 | make_embedded_target = [ |
Miguel Young de la Sota | 3c8ab3b | 2019-11-21 13:59:09 -0600 | [diff] [blame] | 14 | prog_python, meson.source_root() / 'util/embedded_target.py', |
Miguel Young de la Sota | 1d0f8eb | 2019-11-20 14:39:40 -0600 | [diff] [blame] | 15 | '--objcopy', prog_objcopy, |
| 16 | '--srec_cat', prog_srec_cat, |
| 17 | '--objdump', prog_objdump, |
| 18 | '--input', '@INPUT@', |
| 19 | '--basename', '@BASENAME@', |
| 20 | '--outdir', '@OUTDIR@', |
| 21 | ] |
Miguel Osorio | ae67f6b | 2019-10-18 18:56:08 -0700 | [diff] [blame] | 22 | |
Miguel Young de la Sota | 3c8ab3b | 2019-11-21 13:59:09 -0600 | [diff] [blame] | 23 | # Arguments for custom_target, for copying a completed |make_embedded_target| into |
| 24 | # the appropriate location under $BIN_DIR. |
| 25 | export_embedded_target = [ |
| 26 | meson.source_root() / 'util/export_target.sh', |
| 27 | dev_bin_dir, |
| 28 | 'sw/device', |
| 29 | '@OUTDIR@', |
| 30 | '@INPUT@', |
| 31 | ] |
| 32 | |
Miguel Osorio | ae67f6b | 2019-10-18 18:56:08 -0700 | [diff] [blame] | 33 | subdir('boot_rom') |
Sam Elliott | 240a208 | 2020-07-27 21:34:34 +0100 | [diff] [blame] | 34 | subdir('mask_rom') |
Miguel Osorio | ae67f6b | 2019-10-18 18:56:08 -0700 | [diff] [blame] | 35 | subdir('examples') |
Miguel Osorio | 92e9242 | 2020-08-12 19:57:57 -0700 | [diff] [blame] | 36 | subdir('sca') |
Miguel Osorio | ae67f6b | 2019-10-18 18:56:08 -0700 | [diff] [blame] | 37 | subdir('tests') |
Greg Chadwick | 11a4910 | 2019-11-27 14:18:16 +0000 | [diff] [blame] | 38 | subdir('benchmarks') |
Jon Flatley | 61a033f | 2020-02-05 14:28:51 -0500 | [diff] [blame] | 39 | subdir('tock') |
Greg Chadwick | 29d26c5 | 2020-04-17 14:44:42 +0100 | [diff] [blame] | 40 | subdir('riscv_compliance_support') |