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 /file_io | |
parent | Update rtems_waf (diff) | |
download | rtems-examples-243cbc75578c936fc9d80f86129782b7af7d51b0.tar.bz2 |
filesystem: Add checks for rtems-bin2c
Diffstat (limited to 'file_io')
-rw-r--r-- | file_io/crc/wscript | 23 |
1 files changed, 12 insertions, 11 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']) |