コード例 #1
0
ファイル: build.py プロジェクト: nikiie007/FreeNOS
host.AddMethod(UseLibraries, "UseLibraries")
host.AddMethod(UseServers, "UseServers")
host.AddMethod(TargetInstall, "TargetInstall")
host.Append(ROOTFS = '#${BUILDROOT}/rootfs')
host.Append(ROOTFS_FILES = [])
host.Append(bin     = '${ROOTFS}/bin',
	    etc     = '${ROOTFS}/etc',
	    server  = '${ROOTFS}/server',
            boot    = '${ROOTFS}/boot')

target = host.Clone(tools    = ["default", "bootimage", "iso", "binary", "linn", "phony"], #),
		    toolpath = ["support/scons"]) #site_scons"])

# Apply configuration
config.initialize(target, host, ARGUMENTS)
config.write_header(target)
config.write_header(host)

# Enables verbose compilation command output.
if not target['VERBOSE']:
    target['CXXCOMSTR']    = host['CXXCOMSTR']    = "  CXX  $TARGET"
    target['CCCOMSTR']     = host['CCCOMSTR']     = "  CC   $TARGET"
    target['ASCOMSTR']     = host['ASCOMSTR']     = "  AS   $TARGET"
    target['ASPPCOMSTR']   = host['ASPPCOMSTR']   = "  AS   $TARGET"
    target['ARCOMSTR']     = host['ARCOMSTR']     = "  AR   $TARGET"
    target['RANLIBCOMSTR'] = host['RANLIBCOMSTR'] = "  LIB  $TARGET"
    target['LINKCOMSTR']   = host['LINKCOMSTR']   = "  LD   $TARGET"
    target['COPYSTR']      = host['COPYSTR']      = "  COPY $SOURCE => $TARGET"

# Verify the configured CFLAGS.
if not GetOption('clean'):
コード例 #2
0
ファイル: build.py プロジェクト: xulukai/FreeNOS
host.AddMethod(UseLibraries, "UseLibraries")
host.AddMethod(UseServers, "UseServers")
host.AddMethod(TargetInstall, "TargetInstall")
host.Append(ROOTFS = '#${BUILDROOT}/rootfs')
host.Append(ROOTFS_FILES = [])
host.Append(bin     = '${ROOTFS}/bin',
	    etc     = '${ROOTFS}/etc',
	    server  = '${ROOTFS}/server',
            boot    = '${ROOTFS}/boot')

target = host.Clone(tools    = ["default", "bootimage", "iso", "binary", "linn", "phony"], #),
		    toolpath = ["support/scons"]) #site_scons"])

# Apply configuration
config.initialize(target, host, ARGUMENTS)
config.write_header(target, 'include/Config.h')
config.write_header(host, 'include/HostConfig.h')

# Enables verbose compilation command output.
if not target['VERBOSE']:
    target['CXXCOMSTR']    = host['CXXCOMSTR']    = "  CXX  $TARGET"
    target['CCCOMSTR']     = host['CCCOMSTR']     = "  CC   $TARGET"
    target['ASCOMSTR']     = host['ASCOMSTR']     = "  AS   $TARGET"
    target['ASPPCOMSTR']   = host['ASPPCOMSTR']   = "  AS   $TARGET"
    target['ARCOMSTR']     = host['ARCOMSTR']     = "  AR   $TARGET"
    target['RANLIBCOMSTR'] = host['RANLIBCOMSTR'] = "  LIB  $TARGET"
    target['LINKCOMSTR']   = host['LINKCOMSTR']   = "  LD   $TARGET"
    target['COPYSTR']      = host['COPYSTR']      = "  COPY $SOURCE => $TARGET"

# Verify the configured CFLAGS.
if not GetOption('clean'):
コード例 #3
0
ファイル: build.py プロジェクト: zhengfaner/FreeNOS
host.AddMethod(UseServers, "UseServers")
host.AddMethod(TargetInstall, "TargetInstall")
host.Append(ROOTFS='#${BUILDROOT}/rootfs')
host.Append(ROOTFS_FILES=[])
host.Append(bin='${ROOTFS}/bin',
            etc='${ROOTFS}/etc',
            srv='${ROOTFS}/srv',
            boot='${ROOTFS}/boot')

target = host.Clone(
    tools=["default", "bootimage", "iso", "binary", "linn", "phony"],
    toolpath=["site_scons"])

# Apply configuration
config.initialize(target, host, ARGUMENTS)
config.write_header(target, 'include/Config.h')
config.write_header(host, 'include/HostConfig.h')

# Enables verbose compilation command output.
if not target['VERBOSE']:
    target['CXXCOMSTR'] = host['CXXCOMSTR'] = "  CXX  $TARGET"
    target['CCCOMSTR'] = host['CCCOMSTR'] = "  CC   $TARGET"
    target['ASCOMSTR'] = host['ASCOMSTR'] = "  AS   $TARGET"
    target['ASPPCOMSTR'] = host['ASPPCOMSTR'] = "  AS   $TARGET"
    target['ARCOMSTR'] = host['ARCOMSTR'] = "  AR   $TARGET"
    target['RANLIBCOMSTR'] = host['RANLIBCOMSTR'] = "  LIB  $TARGET"
    target['LINKCOMSTR'] = host['LINKCOMSTR'] = "  LD   $TARGET"
    target['COPYSTR'] = host['COPYSTR'] = "  COPY $SOURCE => $TARGET"

# Verify the configured CFLAGS.
if not GetOption('clean'):
コード例 #4
0
host.AddMethod(UseServers, "UseServers")
host.AddMethod(TargetInstall, "TargetInstall")
host.Append(ROOTFS='#${BUILDROOT}/rootfs')
host.Append(ROOTFS_FILES=[])
host.Append(bin='${ROOTFS}/bin',
            etc='${ROOTFS}/etc',
            server='${ROOTFS}/server',
            boot='${ROOTFS}/boot')

target = host.Clone(
    tools=["default", "bootimage", "iso", "binary", "linn", "phony"],
    toolpath=["support/scons"])

# Apply configuration
config.initialize(target, host, ARGUMENTS)
config.write_header(target)
config.write_header(host)

# Enables verbose compilation command output.
if not target['VERBOSE']:
    target['CXXCOMSTR'] = host['CXXCOMSTR'] = "  CXX  $TARGET"
    target['CCCOMSTR'] = host['CCCOMSTR'] = "  CC   $TARGET"
    target['ASCOMSTR'] = host['ASCOMSTR'] = "  AS   $TARGET"
    target['ASPPCOMSTR'] = host['ASPPCOMSTR'] = "  AS   $TARGET"
    target['ARCOMSTR'] = host['ARCOMSTR'] = "  AR   $TARGET"
    target['RANLIBCOMSTR'] = host['RANLIBCOMSTR'] = "  LIB  $TARGET"
    target['LINKCOMSTR'] = host['LINKCOMSTR'] = "  LD   $TARGET"
    target['COPYSTR'] = host['COPYSTR'] = "  COPY $SOURCE => $TARGET"

# Verify the configured CFLAGS.
if not GetOption('clean'):