diff options
Diffstat (limited to 'cpukit/libmisc/wscript')
-rw-r--r-- | cpukit/libmisc/wscript | 267 |
1 files changed, 267 insertions, 0 deletions
diff --git a/cpukit/libmisc/wscript b/cpukit/libmisc/wscript new file mode 100644 index 0000000000..62af524fe6 --- /dev/null +++ b/cpukit/libmisc/wscript @@ -0,0 +1,267 @@ +def build(ctx): + source = [] + + # shell + source_shell = [ + "shell/cat_file.c", + "shell/cmds.c", + "shell/main_alias.c", + "shell/main_cat.c", + "shell/main_cd.c", + "shell/cmp-ls.c", + "shell/main_chdir.c", + "shell/main_chmod.c", + "shell/main_chroot.c", + "shell/main_cp.c", + "shell/main_cpuuse.c", + "shell/main_date.c", + "shell/main_dir.c", + "shell/main_echo.c", + "shell/main_exit.c", + "shell/main_halt.c", + "shell/main_help.c", + "shell/main_id.c", + "shell/main_logoff.c", + "shell/main_ln.c", + "shell/main_ls.c", + "shell/main_mallocinfo.c", + "shell/main_md5.c", + "shell/main_mdump.c", + "shell/main_medit.c", + "shell/main_mfill.c", + "shell/main_mkdir.c", + "shell/main_mount.c", + "shell/main_mmove.c", + "shell/main_msdosfmt.c", + "shell/main_mv.c", + "shell/main_perioduse.c", + "shell/main_top.c", + "shell/main_pwd.c", + "shell/main_rm.c", + "shell/main_rmdir.c", + "shell/main_sleep.c", + "shell/main_stackuse.c", + "shell/main_tty.c", + "shell/main_umask.c", + "shell/main_unmount.c", + "shell/main_blksync.c", + "shell/main_whoami.c", + "shell/shell.c", + "shell/shell_cmdset.c", + "shell/shell_getchar.c", + "shell/shell_getprompt.c", + "shell/shellconfig.c", + "shell/shell_makeargs.c", + "shell/filemode.c", + "shell/pwcache.c", + "shell/print-ls.c", + "shell/write_file.c", + "shell/utils-cp.c", + "shell/utils-ls.c", + "shell/err.c", + "shell/errx.c", + "shell/verr.c", + "shell/vis.c", + "shell/verrx.c", + "shell/vwarn.c", + "shell/vwarnx.c", + "shell/warn.c", + "shell/warnx.c", + "shell/fts.c", + "shell/print_heapinfo.c", + "shell/main_wkspaceinfo.c", + "shell/shell_script.c", + "shell/login_prompt.c", + "shell/login_check.c", + "shell/fdisk.c", + "shell/main_rtc.c", + "shell/dd-args.c", + "shell/main_dd.c", + "shell/dd-conv.c", + "shell/dd-conv_tab.c", + "shell/dd-misc.c", + "shell/dd-position.c", + "shell/main_hexdump.c", + "shell/hexdump-conv.c", + "shell/hexdump-display.c", + "shell/hexdump-odsyntax.c", + "shell/hexdump-parse.c", + "shell/hexsyntax.c", + "shell/main_time.c", + "shell/main_mknod.c", + "shell/main_setenv.c", + "shell/main_getenv.c", + "shell/main_unsetenv.c", + "shell/main_mkrfs.c", + "shell/main_debugrfs.c", + "shell/main_df.c", + "shell/main_lsof.c", + "shell/main_edit.c", + "shell/main_blkstats.c", + "shell/main_rtrace.c", + "shell/shell-wait-for-input.c", + "shell/main_cmdls.c", + "shell/main_cmdchown.c", + "shell/main_cmdchmod.c", + "shell/main_cpuinfo.c", + "shell/main_profreport.c", + ] + ctx.cpu.shell( + source_shell, + includes="%s/shell" % ctx.path.abspath(), + features="src_include src_include_rtems src_include_score") + + + source_shell_networking = [ + "shell/main_ifconfig.c", + "shell/main_route.c", + "shell/main_netstats.c", + "shell/main_ping.c", + ] + + ctx.cpu.shell( + source_shell_networking, + test=ctx.env.ENABLE_NETWORKING, # extra test + alias="libmisc_shell", + includes=["%s/shell" % ctx.path.abspath()], + features="src_include src_include_rtems src_include_score src_include_networking") + + + source_serdbg = [ + "serdbg/serdbg.c", + "serdbg/serdbgio.c", + "serdbg/termios_printk.c" + ] + ctx.cpu.serdbg(source_serdbg) + + + source_networking = [ + "monitor/mon-network.c" + ] + ctx.cpu.networking(source_networking, + features="src_include src_include_rtems src_include_score src_include_networking") + + + source_mp= [ + "monitor/mon-mpci.c" + ] + ctx.cpu.mp( + source_mp, + features="src_include" + ) + + + source_uuid = [ + "uuid/clear.c", + "uuid/compare.c", + "uuid/copy.c", + "uuid/gen_uuid.c", + "uuid/isnull.c", + "uuid/pack.c", + "uuid/parse.c", + "uuid/unpack.c", + "uuid/unparse.c", + "uuid/uuid_time.c", + ] + ctx.cpu.source( + source_uuid, + alias="libmisc_uuid", + features="src_include src_include_rtems", + cflags=["-DHAVE_INTTYPES_H", "-DSIZEOF_TIME_T=4"] + ) + + + source_monitor = [ + "monitor/mon-command.c", + "monitor/mon-config.c", + "monitor/mon-driver.c", + "monitor/mon-editor.c", + "monitor/mon-extension.c", + "monitor/mon-itask.c", + "monitor/mon-manager.c", + "monitor/mon-monitor.c", + "monitor/mon-object.c", + "monitor/mon-part.c", + "monitor/mon-prmisc.c", + "monitor/mon-queue.c", + "monitor/mon-region.c", + "monitor/mon-sema.c", + "monitor/mon-server.c", + "monitor/mon-symbols.c", + "monitor/mon-task.c", + ] + ctx.cpu.source( + source_monitor, + alias="libmisc_monitor", + features="src_include src_include_rtems src_include_score", + cflags=["-DHAVE_INTTYPES_H"] + ) + + + +# if ctx.env.LIBUTF8PROC: +# utf8proc/utf8proc.c + +# if ctx.env.LIBPCI +# shell/main_pci.c + +# if LIBDRVMGR +# shell/main_drvmgr.c + + + source += [ + "bspcmdline/bspcmdline_get.c", + "bspcmdline/bspcmdline_getparam.c", + "bspcmdline/bspcmdline_getparamraw.c", + "bspcmdline/bspcmdline_getparamrhs.c", + "capture/capture_buffer.c", + "capture/capture_support.c", + "capture/capture_user_extension.c", + "capture/capture-cli.c", + "capture/capture.c", + "capture/rtems-trace-buffer-vars.c", + "cpuuse/cpuinforeport.c", + "cpuuse/cpuusagedata.c", + "cpuuse/cpuusagereport.c", + "cpuuse/cpuusagereset.c", + "cpuuse/cpuusagetop.c", + "devnull/devnull.c", + "devnull/devzero.c", +# "dummy/default-configuration.c", +# "dummy/dummy-networking.c", + "dumpbuf/dumpbuf.c", + "fb/mw_print.c", + "fb/mw_uid.c", + "fsmount/fsmount.c", + "mouse/mouse_parser.c", + "mouse/serial_mouse.c", + "redirector/stdio-redirect.c", + "rtems-fdt/rtems-fdt-shell.c", + "rtems-fdt/rtems-fdt.c", + "stackchk/check.c", + "stringto/stringtodouble.c", + "stringto/stringtofloat.c", + "stringto/stringtoint.c", + "stringto/stringtolong.c", + "stringto/stringtolongdouble.c", + "stringto/stringtolonglong.c", + "stringto/stringtopointer.c", + "stringto/stringtounsignedchar.c", + "stringto/stringtounsignedint.c", + "stringto/stringtounsignedlong.c", + "stringto/stringtounsignedlonglong.c", + "untar/untar_tgz.c", + "untar/untar_txz.c", + "untar/untar.c", + "xz/xz_crc32.c", + "xz/xz_dec_lzma2.c", + "xz/xz_dec_stream.c", + ] + + + ctx.cpu.source( + source, + alias="libmisc", + features="src_include src_include_rtems src_include_score src_include_networking" + ) + |