summaryrefslogtreecommitdiffstats
path: root/filesystem
diff options
context:
space:
mode:
authorVijay Kumar Banerjee <vijaykumar9597@gmail.com>2020-03-18 15:10:22 +0530
committerVijay Kumar Banerjee <vijaykumar9597@gmail.com>2020-03-18 15:10:22 +0530
commit243cbc75578c936fc9d80f86129782b7af7d51b0 (patch)
treee734eea7e447b0d193b246de84cabf7876a5ce4d /filesystem
parentUpdate rtems_waf (diff)
downloadrtems-examples-243cbc75578c936fc9d80f86129782b7af7d51b0.tar.bz2
filesystem: Add checks for rtems-bin2c
Diffstat (limited to 'filesystem')
-rw-r--r--filesystem/fat_ramdisk/wscript18
1 files changed, 9 insertions, 9 deletions
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,