blob: 531da20a5a73a4a80d66b8dbc1c210b40ffbf8b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
#Copyright 2013 Gedare Bloom (gedare@rtems.org)
#
# This file's license is 2-clause BSD as in this distribution's LICENSE.2 file.
#
# Waf build script for RTEMS fat_ramdisk
import rtems_waf.rtems as rtems
import rtems_waf.rootfs as rootfs
version = "1.0.0"
def build(bld):
rtems.build(bld)
arch_bsp = bld.get_env()['RTEMS_ARCH_BSP']
arch = bld.get_env()['RTEMS_ARCH']
bsp = bld.get_env()['RTEMS_BSP']
#
# The include paths and defines.
#
bld.includes = ['.']
bld.defines = ['PACKAGE_VERSION="' + version + '"']
#
# 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'])
|