summaryrefslogtreecommitdiff
path: root/wscript (follow)
AgeCommit message (Collapse)Author
2023-06-14build: Format with yapfSebastian Huber
2023-05-20Update company nameSebastian Huber
The embedded brains GmbH & Co. KG is the legal successor of embedded brains GmbH.
2023-03-06build: Print item UID in case of errorsSebastian Huber
This helps to identify issues in build items.
2023-01-17build: Use enabled by for defaultsSebastian Huber
Merge the "default" and "default-by-variant" attributes. Use an "enabled-by" expression to select the default value based on the enabled set. This makes it possible to select default values depending on other options. For example you could choose memory settings based on whether RTEMS_SMP is enabled or disabled. The change was tested by comparing the output of ./waf bspdefaults before and after the change.
2023-01-17build: Add reason to test state definitionsSebastian Huber
2022-11-11wscript: rename bsp_list to bsplistGedare Bloom
2022-11-11wscript: rename bsp_defaults to bspdefaultsGedare Bloom
2022-11-07wscript: fix formatting with yapfGedare Bloom
2022-07-04build: Allow separate optimization flagsSebastian Huber
Allow separate optimization flags for the BSP, cpukit, and tests. For example, the BSP and cpukit may be built without optimization if coverage instrumentation is enabled, however, the tests may still use optimization. Update #4670.
2022-07-04build: Add cppflags, cflags, cxxflags to groupsSebastian Huber
Propagate the group defined cppflags, cflags, and cxxflags from parent groups to child items through the build item context. Update #4670.
2022-07-04build: Improve value substitutionSebastian Huber
The waf build system uses lists for tool flags. The build items may use variable substitution. Add the ability to use the variable substitution in lists. For example: MORE_FLAGS = ['-more', '-flags'] flags: - -some-flag - ${MORE_FLAGS} Before this change, the ${MORE_FLAGS} was substituted to "-more -flags". This would be passed by waf as a single command line argument to the tool. After this change, the ${MORE_FLAGS} list extends the flags list: flags = ['-some-flag', '-more', '-flags'] This list extension is performed if a list element consists of exactly one variable. Update #4670.
2022-07-04build: Fix identifier patternSebastian Huber
Allow upper case characters in identifiers. Update #4670.
2022-07-04build: Move BSP_INCLUDES splitSebastian Huber
The goal is to let the build items define as much as possible.
2022-07-04build: Add more flags to BuildItemContextSebastian Huber
Add cppflags, cflags, and cxxflags to BuildItemContext. This allows to propagate the flags from parent items to child items. Update #4670.
2022-06-08build: Assert value properties only if not NoneSebastian Huber
2022-04-26wscript: Allow start code to be written in CKinsey Moore
Start code for most platforms requires hand-coded ASM but some can be bootstrapped entirely in C, especially for paravirtualized platforms. This change allows start code to be written in C where possible instead of requiring architecture-specific ASM to bridge to C.
2022-04-14wscript: Allow substitution outside valuesKinsey Moore
This expands the ability to substitute variables outside the current limitation of values in options to asflags, cflags, cppflags, cxxflags, ldflags, and includes. It is possible for all of these flags to utilize user-defined information in config.ini, especially for paths to external resources.
2022-03-18build: Apply command line options to all variantsSebastian Huber
Update #4548.
2021-11-17build: Add --rtems-version command line optionSebastian Huber
Update #4548.
2021-11-16build: Support command line specified optionsSebastian Huber
Update #4548.
2021-08-18build: Merge default-by-family into by-variantSebastian Huber
Prefix the BSP family name with "bsps/" to make it distinct to the BSP variant names. Update #4468.
2021-07-26build: Bring Item.link() in line with waf linkSebastian Huber
The LDFLAGS are placed after the static libraries in the standard waf link command, see "waflib/Tools/c.py" in the waf sources.
2021-07-22build: Add "bsps/" prefix to BSP family enableSebastian Huber
BSP family and BSP variant names may be equal. This prefix avoids ambiguity in the enabled-by expressions.
2021-07-15build: Use objects of build context for programsSebastian Huber
2021-07-15build: Add the BSP family to the enable setSebastian Huber
This makes it possible to use the BSP family in expressions of the enabled-by attribute.
2021-07-15build: Fix formatSebastian Huber
2021-07-15build: Prefer variant default value over familySebastian Huber
Update #4468.
2021-07-15build: Fix bsp_defaults commandSebastian Huber
Update #4468.
2021-07-15build: Use BSP family for optionsChris Johns
- Optionally add support for 'default-by-family' to allow option to be set by a family and so all related BSPs Close #4468
2021-02-23build: Fix format in wscriptSebastian Huber
2021-01-26build: Add CPPFLAGS to assembler command lineSebastian Huber
We use GCC to call the assembler. This means the assembler files are processed by the C preprocessor.
2020-12-16build: Add ABI flags to gnatmake compiler flagsSebastian Huber
2020-11-24wscript: Apply test state expectations correctlyKinsey Moore
The variety of expected test states are not currently applied to tests with names containing '-' correctly due to a failure to replace '-' with '_' before adding the CPPFLAGS to the environment for that test. This ensures that all additions of CPPFLAGS have that replacement performed so that the CPPFLAGS are applied properly during compilation.
2020-11-12build: Fix cache file placementSebastian Huber
The "bsp_list" and "bsp_defaults" commands get a waflib.Context object which has no build node. Use a hard coded build path for these commands.
2020-11-05build: Place cache file in output directorySebastian Huber
This improves support for the --out option. Previously, the cache file was placed in the source directory under "build/...". Now, it is placed in the output directory, which is "build" by default. So, if you don't use the --out option nothing changes. However, if you use the --out option, then the cache file is placed under the specified directory.
2020-10-28build: Improve cache handlingSebastian Huber
Check the directory modification time to notice file removals.
2020-10-28build: Report caching errorsSebastian Huber
The ctx.fatal() method uses an exception to stop the build. Do not catch it.
2020-10-02build: Use exact match by default for BSP namesSebastian Huber
Update #3818.
2020-09-28build: Add commentSebastian Huber
Update #3818.
2020-09-27build: Fix option default valuesSebastian Huber
For the option default values we have to use the BSP name defined by the build specification and not the user. Update #3818.
2020-09-27build: Fix enabled-by evaluationSebastian Huber
For the enabled-by evaluation we have to use the BSP name defined by the build specification and not the user. Update #3818.
2020-09-27build: Simplify get_compiler()Sebastian Huber
Update #3818.
2020-09-17build: Allow test program item UIDs with a "-"Sebastian Huber
Update #3818.
2020-09-17build: Fix dependencies for start and asm filesSebastian Huber
Add a feature to enforce an explicit target file for assembler sources. Add a build start file node list and use it as a test program dependency. The fix for #3846 and #4080 needs to be combined, because the fix for #3846 requires the removal of 'before=["cstlib"]'. This patch fixes two issues: 1. The tracking of start file dependencies. 2. Reflect that executables depend on the start files. We need a start.o file in the right path so that the linker can find is as specified by the linker script, and not for example a start.S.17.o file in some path. This part is addressed by the "explicit_asm_target" feature. This build process extension @after("apply_link") @feature("cprogram", "cxxprogram") def process_start_files(self): if getattr(self, "start_files", False): self.link_task.dep_nodes.extend(self.bld.start_files) addresses 2. Close #3846. Close #4080.
2020-09-14build: Use Python tarfile instead of paxSebastian Huber
This patch is for the new build system.
2020-09-14build: Alternative build system based on wafSebastian Huber
Update #3818.