diff options
author | Vijay Kumar Banerjee <vijaykumar9597@gmail.com> | 2020-03-18 15:10:22 +0530 |
---|---|---|
committer | Vijay Kumar Banerjee <vijaykumar9597@gmail.com> | 2020-03-18 15:10:22 +0530 |
commit | 243cbc75578c936fc9d80f86129782b7af7d51b0 (patch) | |
tree | e734eea7e447b0d193b246de84cabf7876a5ce4d | |
parent | Update rtems_waf (diff) | |
download | rtems-examples-243cbc75578c936fc9d80f86129782b7af7d51b0.tar.bz2 |
filesystem: Add checks for rtems-bin2c
-rw-r--r-- | file_io/crc/wscript | 23 | ||||
-rw-r--r-- | filesystem/fat_ramdisk/wscript | 18 |
2 files changed, 21 insertions, 20 deletions
diff --git a/file_io/crc/wscript b/file_io/crc/wscript index 531da20..45384a9 100644 --- a/file_io/crc/wscript +++ b/file_io/crc/wscript @@ -26,14 +26,15 @@ def build(bld): # # Package the root file system as a C file. # - rootfs.build_from_src_root(bld, - name = 'fs-root', - root = 'rootfs') - - bld(features = 'c cprogram', - target = 'crc.exe', - includes = bld.includes, - defines = bld.defines, - source = ['init.c', - 'fs-root-tar.c', - 'crc_32.c']) + if rtems.check_env(bld, 'RTEMS_BIN2C'): + rootfs.build_from_src_root(bld, + name = 'fs-root', + root = 'rootfs') + + bld(features = 'c cprogram', + target = 'crc.exe', + includes = bld.includes, + defines = bld.defines, + source = ['init.c', + 'fs-root-tar.c', + 'crc_32.c']) diff --git a/filesystem/fat_ramdisk/wscript b/filesystem/fat_ramdisk/wscript index a980187..ecf216f 100644 --- a/filesystem/fat_ramdisk/wscript +++ b/filesystem/fat_ramdisk/wscript @@ -26,17 +26,17 @@ def build(bld): # # Package the root file system as a C file. # - rootfs.build_from_src_root(bld, - name = 'fs-root', - root = 'rootfs') + if rtems.check_env(bld, 'RTEMS_BIN2C', 'RTEMS_TLD'): + rootfs.build_from_src_root(bld, + name = 'fs-root', + root = 'rootfs') - bld(features = 'c cprogram', - target = 'fat_ramdisk.exe', - includes = bld.includes, - defines = bld.defines, - source = ['init.c', 'fs-root-tar.c']) + bld(features = 'c cprogram', + target = 'fat_ramdisk.exe', + includes = bld.includes, + defines = bld.defines, + source = ['init.c', 'fs-root-tar.c']) - if rtems.check_env(bld, 'RTEMS_TLD'): bld(features = 'c rtrace', target = 'fat_ramdisk.texe', includes = bld.includes, |