]> rtime.felk.cvut.cz Git - omk.git/log
omk.git
3 months agoNuttX: the adapt to new implementation of ROMFS mounting at /etc master
Pavel Pisa [Wed, 10 Jan 2024 18:52:12 +0000 (19:52 +0100)]
NuttX: the adapt to new implementation of ROMFS mounting at /etc

The option CONFIG_NSH_ROMFSETC has been replaced
by CONFIG_ETC_ROMFS and file system is mounted
during system initialization (sched/init/nx_bringup.c)
instead of application and NSH (nshlib/nsh_romfsetc.c).

The adapted OMK wrap-up code can be found in

  https://github.com/ppisa/nuttx-devel/tree/master/nuttx-omk-template/wrapup

It allows to wrap set of applications and define common
filesystem content in the final single binary including
even NuttX kernel.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
12 months agoPrevent GNU linker synthetic LOAD map statements to propagate to dependencies.
Pavel Pisa [Fri, 7 Apr 2023 08:25:41 +0000 (10:25 +0200)]
Prevent GNU linker synthetic LOAD map statements to propagate to dependencies.

Never versions of GNU binutils LD generates next line into map files

  LOAD linker stubs

which is synthetic and does not match any file in filesystem.
It has to be excluded from the generated dependency files.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
12 months agoNuttX: workaround to not include -nostartfiles from target section.
Pavel Pisa [Tue, 4 Apr 2023 15:30:37 +0000 (17:30 +0200)]
NuttX: workaround to not include -nostartfiles from target section.

It clashes with plain LD use choice for some NuttX targets.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
12 months agoNuttX: allow multiple LD-script files to support RISC-V targets.
Pavel Pisa [Tue, 4 Apr 2023 15:22:57 +0000 (17:22 +0200)]
NuttX: allow multiple LD-script files to support RISC-V targets.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
12 months agoNuttX: correct kernel modules and libraries build.
Pavel Pisa [Sat, 1 Apr 2023 21:57:36 +0000 (23:57 +0200)]
NuttX: correct kernel modules and libraries build.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
12 months agoNuttX: minor correction to support older NuttX releases which use GCC for linking.
Pavel Pisa [Fri, 31 Mar 2023 23:18:03 +0000 (01:18 +0200)]
NuttX: minor correction to support older NuttX releases which use GCC for linking.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
12 months agoNuttX: update rules for 12.0.0 release yet attempt to support old versions.
Pavel Pisa [Fri, 31 Mar 2023 22:46:04 +0000 (00:46 +0200)]
NuttX: update rules for 12.0.0 release yet attempt to support old versions.

The most of the NuttX specific logic is moved inside
OMK rules. The user has to provide only NUTTX_EXPORT
in config.target or at command line.

Debugging and output formats list are another optional
useful variables to choose by user. I.e.

  DEBUG ?= -g -ggdb

  OUTPUT_FORMATS = bin hex

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
12 months agoEnsure that OBJ_EXT, LIB_EXT, LIB_PREF and ASM_EXT is defined for all targets.
Pavel Pisa [Fri, 31 Mar 2023 22:34:13 +0000 (00:34 +0200)]
Ensure that OBJ_EXT, LIB_EXT, LIB_PREF and ASM_EXT is defined for all targets.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
12 months agoLinux: correct "linker stubs" eliminaton patch.
Pavel Pisa [Tue, 28 Mar 2023 08:56:26 +0000 (10:56 +0200)]
Linux: correct "linker stubs" eliminaton patch.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
12 months agoLinux: some version of the GNU ld include "linker stubs" synthetics entry in the...
Pavel Pisa [Tue, 28 Mar 2023 08:42:43 +0000 (10:42 +0200)]
Linux: some version of the GNU ld include "linker stubs" synthetics entry in the map file.

It needs to be filtered out.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
12 months agosnippets/linux-kernel.omk: Linux 6.x kernel series modpost requirements workaround.
Pavel Pisa [Tue, 28 Mar 2023 07:06:38 +0000 (09:06 +0200)]
snippets/linux-kernel.omk: Linux 6.x kernel series modpost requirements workaround.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
12 months agorules/linux/kernelcfg2mk: initial step for Linux 6.x kernel series support.
Pavel Pisa [Mon, 27 Mar 2023 09:13:07 +0000 (11:13 +0200)]
rules/linux/kernelcfg2mk: initial step for Linux 6.x kernel series support.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
17 months agoRTEMS rules: add support for multiple OUTPUT_FORMATS
Pavel Pisa [Wed, 16 Nov 2022 19:18:40 +0000 (20:18 +0100)]
RTEMS rules: add support for multiple OUTPUT_FORMATS

This allows to specify followup rules to build
U-boot images by specific config.target.
Usesfull for example for MicroZed Xilinx Zynq
based boards.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
2 years agoNuttX: define LD to point to GNU ld, NuttX provided LD points to GCC wrapper now .
Pavel Pisa [Sun, 18 Jul 2021 09:38:59 +0000 (11:38 +0200)]
NuttX: define LD to point to GNU ld, NuttX provided LD points to GCC wrapper now .

The use of GCC wrapper and collect2 can have advantages
for LTO, whole program optimization C++ templates,
but causes many problems. Many low level linker options
has to be escaped by -Wl, and -nostartfiles -nodefaultlibs
has to be added to modules and ELF programs linking etc.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
3 years agoNuttX: adjust default ELF_FILE_LDSCRIPT location in system export.
Pavel Pisa [Wed, 20 Jan 2021 22:54:54 +0000 (23:54 +0100)]
NuttX: adjust default ELF_FILE_LDSCRIPT location in system export.

The NuttX export changed subdirectory name for ldscripts.
The incorrect path prevents to build standalone loadable
ELF applications from OMK build tree.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
3 years agoNuttX: allow to specify xxx_PROGBUILTIN_EXCLUDE list of user and or NuttX programs...
Pavel Pisa [Sun, 18 Oct 2020 22:28:31 +0000 (00:28 +0200)]
NuttX: allow to specify xxx_PROGBUILTIN_EXCLUDE list of user and or NuttX programs to be excluded.

Usually all available NuttX apps and user build programs are linked
into target image ("all" specification used). But sometimes
some program causes problems or contributes too much
to target binary image size. Such programs can be excluded
from final linking.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
4 years agoNuttX: change ROMFS symbols to _start, _size, _end to match binutils ones.
Pavel Pisa [Fri, 13 Sep 2019 20:52:52 +0000 (22:52 +0200)]
NuttX: change ROMFS symbols to _start, _size, _end to match binutils ones.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
4 years agoNuttX: more file types to clean.
Pavel Pisa [Fri, 13 Sep 2019 20:07:14 +0000 (22:07 +0200)]
NuttX: more file types to clean.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
4 years agoNuttX: use ELF_FILE_LDSCRIPT for ldscript for loadable ELF applications and modules.
Pavel Pisa [Fri, 13 Sep 2019 20:01:44 +0000 (22:01 +0200)]
NuttX: use ELF_FILE_LDSCRIPT for ldscript for loadable ELF applications and modules.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
4 years agoNuttX: include support for ROM filesystems.
Pavel Pisa [Thu, 12 Sep 2019 21:20:30 +0000 (23:20 +0200)]
NuttX: include support for ROM filesystems.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
4 years agoNuttX: support kernel modules linked directly into system image.
Pavel Pisa [Wed, 11 Sep 2019 08:45:43 +0000 (10:45 +0200)]
NuttX: support kernel modules linked directly into system image.

The module entry module_initialize is renamed
to <module_name>_module_initialize and module objects are
packed into library archive. Kernel libraries and modules
can be linked into target system image by specifying
<progname>_KMODBUILTIN define.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
4 years agoNuttX: extend kernel rules to support libraries.
Pavel Pisa [Mon, 9 Sep 2019 21:53:52 +0000 (23:53 +0200)]
NuttX: extend kernel rules to support libraries.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
4 years agoNuttX: remove kernel module debug output.
Pavel Pisa [Mon, 9 Sep 2019 20:57:50 +0000 (22:57 +0200)]
NuttX: remove kernel module debug output.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
4 years agoNuttX: link program/application only once into combined system image.
Pavel Pisa [Mon, 9 Sep 2019 20:44:27 +0000 (22:44 +0200)]
NuttX: link program/application only once into combined system image.

When given program had been built as builtin command, it was linked
as builtin relocatable object (PBI) which is linked together
with NuttX system libraries and program object files (again) into
target system image. But this way the actual program objects
are linked twice into OS image.

This change ensures that actual program PBI is not linked in
and alias <progname>_main is created to reference main()
from builtin programs table.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
4 years agobase.omk: need to process given pass can be specified by variable <pass_name>_REQUIRED .
Pavel Pisa [Mon, 9 Sep 2019 20:33:30 +0000 (22:33 +0200)]
base.omk: need to process given pass can be specified by variable <pass_name>_REQUIRED .

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
4 years agoNuttX: initial kernel modules compilation logic.
Pavel Pisa [Sun, 8 Sep 2019 20:25:56 +0000 (22:25 +0200)]
NuttX: initial kernel modules compilation logic.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
4 years agoNuttX: adjust location of builtin.h when PiKRON's changes has been accepted to mainline.
Pavel Pisa [Thu, 29 Aug 2019 09:27:59 +0000 (11:27 +0200)]
NuttX: adjust location of builtin.h when PiKRON's changes has been accepted to mainline.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
4 years agoNuttX: remove some development output.
Pavel Pisa [Fri, 23 Aug 2019 15:05:20 +0000 (17:05 +0200)]
NuttX: remove some development output.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
4 years agoInitial support for NuttX user-space programs build.
Pavel Pisa [Fri, 23 Aug 2019 14:27:11 +0000 (16:27 +0200)]
Initial support for NuttX user-space programs build.

bin_PROGRAMS and test_PROGRAMS are build in multiple variants:
 - they are build as standalone loadable ELF programs
   which start from program provided main() symbol
 - then each program is linked with NuttX libraries
   which for NuttX flat target creates complete
   system image, main() can be configured as startup
   symbol in CONFIG_USER_ENTRYPOINT

bin_PROGRAMS are in addition build as objects with
symbols stripped and main() renamed to program_name_main().
The objects are added into registry and if some of programs
specifies list of commands (prgram_name_PROGBUILTIN)
which should be linked into final executable then these
programs are available in binfs image. If the "all" symbol
is used instead of individual programs then all programs
from the build are linked into system image. External registry
can be specified as well by NUTTXREGISTRY define.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
5 years agoPrepare Linux modules build for 5.x kernel series.
Pavel Pisa [Fri, 18 Jan 2019 18:04:12 +0000 (19:04 +0100)]
Prepare Linux modules build for 5.x kernel series.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
5 years agoFix .s to .o compilation support.
Pavel Pisa [Wed, 9 Jan 2019 23:31:40 +0000 (00:31 +0100)]
Fix .s to .o compilation support.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
5 years agosysless and gcc: use make if for decision between C and C++ linker.
Pavel Pisa [Wed, 9 Jan 2019 23:30:13 +0000 (00:30 +0100)]
sysless and gcc: use make if for decision between C and C++ linker.

Use of echo leads to problem when strings protected by aposthrophes
are used in TARGET_ARCH variable. FOr example

TARGET_ARCH += '-D__weak=__attribute__((weak))'

Apostrophes are stripped by echo and then brackets are
misinterpreted by shell.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
5 years agosysless: support .s to .o for compatibility with with STM AC6.
Pavel Pisa [Wed, 9 Jan 2019 21:16:13 +0000 (22:16 +0100)]
sysless: support .s to .o for compatibility with with STM AC6.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
6 years agoOMK kernelcfg2mk: consider name passed to KBUILD_MODNAME as unconditionally quoted...
Pavel Pisa [Thu, 13 Jul 2017 11:50:46 +0000 (13:50 +0200)]
OMK kernelcfg2mk: consider name passed to KBUILD_MODNAME as unconditionally quoted for 2.6+ kernels.

The check has been incorrect for Linux 4.7+ kernels.
This change removes support for Linux kernels older than 2.6.15.
Obsoleted support for 2.4.x kernels is not affected by this change.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
7 years agoInclude executable map support to RTEMS rules.
Pavel Pisa [Thu, 19 May 2016 11:53:06 +0000 (13:53 +0200)]
Include executable map support to RTEMS rules.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
8 years agoDo not use CFLAGS when compiling C++ code
Michal Sojka [Fri, 30 Oct 2015 12:47:10 +0000 (13:47 +0100)]
Do not use CFLAGS when compiling C++ code

Autoconf doesn't use them either.

Thanks to Jirka Kubias for reporting this.

8 years agoFix failing test
Michal Sojka [Fri, 30 Oct 2015 12:45:41 +0000 (13:45 +0100)]
Fix failing test

GCC 5.2.1 no longer produces the warning that was used in this test.

8 years agoApply allow sources in subdirectories to rtems and sdcc rules.
Pavel Pisa [Wed, 16 Sep 2015 19:05:34 +0000 (21:05 +0200)]
Apply allow sources in subdirectories to rtems and sdcc rules.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
8 years agoRTEMS rules: correct cleanup and documentation for embedded tar files.
Pavel Pisa [Sat, 5 Sep 2015 09:31:26 +0000 (11:31 +0200)]
RTEMS rules: correct cleanup and documentation for embedded tar files.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
8 years agoRTEMS rules: provide support to build application with symbols exported.
Pavel Pisa [Sat, 5 Sep 2015 09:30:45 +0000 (11:30 +0200)]
RTEMS rules: provide support to build application with symbols exported.

This allows to use dlopen from application to load plugins
or user applications.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
8 years agoUpdate OMK kernelcf2mk for actual Linux kernels.
Pavel Pisa [Sun, 17 May 2015 20:12:39 +0000 (22:12 +0200)]
Update OMK kernelcf2mk for actual Linux kernels.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
9 years agoAlways use OMK_*FLAGS instead of *FLAGS
Michal Sojka [Tue, 10 Mar 2015 19:57:39 +0000 (20:57 +0100)]
Always use OMK_*FLAGS instead of *FLAGS

We want to stick with the semantics defined by automake. In it *FLAGS are
user variables that should allow the user to override anything. Therefore,
we should not modify them in Makefile.rules at all.

The problem with the previous code was the following:
If config.target defined OMK_CFLAGS=-O0, then Makefile.rules defined
CFLAGS=-Wall -O2 and -O2 overrode the -O0.

This also fixes the test added in the previous commit.

9 years agoAdd failing test
Michal Sojka [Tue, 10 Mar 2015 20:23:05 +0000 (21:23 +0100)]
Add failing test

9 years agoDelete unused variables
Michal Sojka [Tue, 10 Mar 2015 19:57:55 +0000 (20:57 +0100)]
Delete unused variables

9 years agoUpdate wvtool
Michal Sojka [Fri, 5 Dec 2014 22:43:44 +0000 (23:43 +0100)]
Update wvtool

9 years agoUpdate wvtool
Michal Sojka [Fri, 5 Dec 2014 22:27:51 +0000 (23:27 +0100)]
Update wvtool

9 years agoUse wvtool for testing instead of wvtestrun
Michal Sojka [Tue, 11 Nov 2014 00:16:51 +0000 (01:16 +0100)]
Use wvtool for testing instead of wvtestrun

9 years agoMake omkbuild Python 3 compatible
Michal Sojka [Mon, 8 Sep 2014 22:48:51 +0000 (00:48 +0200)]
Make omkbuild Python 3 compatible

9 years agoAllow specifying python binary to run omkbuild
Michal Sojka [Mon, 8 Sep 2014 22:49:49 +0000 (00:49 +0200)]
Allow specifying python binary to run omkbuild

This is will ease python2 and python3 compatibility testing.

9 years agoAdd experimental version of omk-mode for Emacs
Michal Sojka [Tue, 29 Jul 2014 22:48:18 +0000 (00:48 +0200)]
Add experimental version of omk-mode for Emacs

9 years agoSupport all generally recognized C++ extensions
Michal Sojka [Thu, 26 Jun 2014 14:06:14 +0000 (16:06 +0200)]
Support all generally recognized C++ extensions

9 years agoIt is not necessary to evaluate C++ compilation separately for every possible file...
Michal Sojka [Thu, 26 Jun 2014 13:59:35 +0000 (15:59 +0200)]
It is not necessary to evaluate C++ compilation separately for every possible file extension

One call to $(filter) can handle all the extensions.

9 years agoAdd rules for .s assembler files
Michal Sojka [Thu, 26 Jun 2014 13:55:56 +0000 (15:55 +0200)]
Add rules for .s assembler files

According to gcc documentation .s is processed by assembler without first
preprocessing it with CPP.

10 years agoFix typo that caused all programs to be linked by $(CXX)
Michal Sojka [Mon, 6 Jan 2014 13:47:24 +0000 (14:47 +0100)]
Fix typo that caused all programs to be linked by $(CXX)

10 years agoDo not use program dependenies on linker command line
Michal Sojka [Tue, 26 Nov 2013 16:25:55 +0000 (17:25 +0100)]
Do not use program dependenies on linker command line

We have to use only explicitly specified objects based on the content of
Makefile.omk.

Previously, our automatic dependency generator caused the second
compilation to fail because things like
/usr/lib/gcc/x86_64-linux-gnu/4.8/crtbegin.o appeared on the linker
command line.

10 years agoReplace AM_ variables with OMK_ ones
Michal Sojka [Mon, 25 Nov 2013 16:37:46 +0000 (17:37 +0100)]
Replace AM_ variables with OMK_ ones

10 years agoAdd forgotten cmetric.omk
Michal Sojka [Mon, 25 Nov 2013 16:31:19 +0000 (17:31 +0100)]
Add forgotten cmetric.omk

10 years agoMove cmetric rules to a separate snippet
Michal Sojka [Mon, 25 Nov 2013 16:22:45 +0000 (17:22 +0100)]
Move cmetric rules to a separate snippet

10 years agoUse C locale to run tests
Michal Sojka [Mon, 25 Nov 2013 16:21:59 +0000 (17:21 +0100)]
Use C locale to run tests

This influences, for example, sorting order and different locales may
result if test failures.

10 years agoRemove debugging message
Michal Sojka [Mon, 25 Nov 2013 15:34:14 +0000 (16:34 +0100)]
Remove debugging message

10 years agoSupport for target specific flags is broken in sysless
Michal Sojka [Fri, 22 Nov 2013 16:49:44 +0000 (17:49 +0100)]
Support for target specific flags is broken in sysless

10 years agoSupport target specific flags also for libraries
Michal Sojka [Fri, 22 Nov 2013 16:41:21 +0000 (17:41 +0100)]
Support target specific flags also for libraries

10 years agoSupport program specific CFLAGS, CXXCLAGS and CPPFLAGS
Michal Sojka [Fri, 22 Nov 2013 16:40:40 +0000 (17:40 +0100)]
Support program specific CFLAGS, CXXCLAGS and CPPFLAGS

10 years agoFix bug in clean target
Michal Sojka [Wed, 13 Nov 2013 05:31:28 +0000 (06:31 +0100)]
Fix bug in clean target

10 years agoFix error with multiple IDL files
Michal Sojka [Wed, 13 Nov 2013 05:11:37 +0000 (06:11 +0100)]
Fix error with multiple IDL files

... whitespace is sometimes important in Makefiles.

10 years agoDocument and fix xxx_GEN_SOURCES
Michal Sojka [Tue, 12 Nov 2013 23:40:38 +0000 (00:40 +0100)]
Document and fix xxx_GEN_SOURCES

10 years agoAllow including an arbitrary file from tests in the documentation
Michal Sojka [Tue, 12 Nov 2013 23:40:08 +0000 (00:40 +0100)]
Allow including an arbitrary file from tests in the documentation

10 years agoFix test
Michal Sojka [Tue, 12 Nov 2013 21:02:43 +0000 (22:02 +0100)]
Fix test

10 years agoRemove debugging output
Michal Sojka [Tue, 12 Nov 2013 21:02:37 +0000 (22:02 +0100)]
Remove debugging output

10 years agoAdd linux-kernel snippet
Michal Sojka [Tue, 12 Nov 2013 20:59:54 +0000 (21:59 +0100)]
Add linux-kernel snippet

I forgot to add it to the comit that split the linux rules to user and
kernel parts.

10 years agoFix generation of test files included in the documentation
Michal Sojka [Tue, 12 Nov 2013 20:58:39 +0000 (21:58 +0100)]
Fix generation of test files included in the documentation

10 years agoReworked default-config test
Michal Sojka [Tue, 12 Nov 2013 20:30:42 +0000 (21:30 +0100)]
Reworked default-config test

10 years agoFix sources_in_subdirectory test
Michal Sojka [Tue, 12 Nov 2013 17:49:36 +0000 (18:49 +0100)]
Fix sources_in_subdirectory test

Note that handling in source files in subdirectories has changed. See
previous commit for details.

Now, all tests pass.

10 years agoFix IDL test
Michal Sojka [Tue, 12 Nov 2013 17:40:49 +0000 (18:40 +0100)]
Fix IDL test

This breaks sources_in_subdirectory test, because I changed the way how
object files are generated. Now, every object is generated in the
"current" build directory irrespective to where the source resides.

This might break existing projects. If this happens, we will handle it
somehow.

10 years agoSimplify libraries compilation
Michal Sojka [Tue, 12 Nov 2013 16:57:37 +0000 (17:57 +0100)]
Simplify libraries compilation

This commit does the similar changes as a previous commit for program
compilation.

10 years agoDon't exit when a test fails
Michal Sojka [Tue, 12 Nov 2013 16:56:55 +0000 (17:56 +0100)]
Don't exit when a test fails

10 years agoRework libraries and shlibs tests
Michal Sojka [Tue, 12 Nov 2013 15:46:45 +0000 (16:46 +0100)]
Rework libraries and shlibs tests

10 years agoSimplify program compilation
Michal Sojka [Tue, 12 Nov 2013 15:27:33 +0000 (16:27 +0100)]
Simplify program compilation

Now, PROGRAM_template does not use global variables and rule generation
($(eval $(call ...))) is not split over multiple places. Now, we simply
call $(eval $(call PROGRAM_template,...)) and all rules for program
compilation are generated.

10 years agoRework test for programs
Michal Sojka [Tue, 12 Nov 2013 15:21:18 +0000 (16:21 +0100)]
Rework test for programs

10 years agoConvert cmetric test to a single file
Michal Sojka [Tue, 12 Nov 2013 13:59:57 +0000 (14:59 +0100)]
Convert cmetric test to a single file

10 years agoRun tests directly with snippets instead of with the preprocessed rules
Michal Sojka [Tue, 12 Nov 2013 13:56:08 +0000 (14:56 +0100)]
Run tests directly with snippets instead of with the preprocessed rules

This simplifies debugging failed tests.

10 years agoDocument AM_ variables instead of user variables
Michal Sojka [Tue, 12 Nov 2013 10:34:12 +0000 (11:34 +0100)]
Document AM_ variables instead of user variables

10 years agoSplit Linux rules to user and kernel parts
Michal Sojka [Tue, 12 Nov 2013 10:30:56 +0000 (11:30 +0100)]
Split Linux rules to user and kernel parts

I mostly care about userspace and this split will allow to simplify
the userspace part separately and thus make it more maintainable.

10 years agoConvert clean pass to "double-colon rules"
Michal Sojka [Tue, 12 Nov 2013 10:23:00 +0000 (11:23 +0100)]
Convert clean pass to "double-colon rules"

This simplifies things a bit.

10 years agoRemove OCERA specific stuff
Michal Sojka [Tue, 12 Nov 2013 09:57:49 +0000 (10:57 +0100)]
Remove OCERA specific stuff

Nobody uses this anymore and it only complicates the code.

10 years agoCorrect comment
Michal Sojka [Tue, 12 Nov 2013 09:50:34 +0000 (10:50 +0100)]
Correct comment

10 years agoSimplify CFLAGS test and check for CFLAGS overriding AM_CFLAGS
Michal Sojka [Tue, 12 Nov 2013 09:20:49 +0000 (10:20 +0100)]
Simplify CFLAGS test and check for CFLAGS overriding AM_CFLAGS

10 years agoDocument AM_*FLAGS and relation to *FLAGS
Michal Sojka [Tue, 12 Nov 2013 09:51:36 +0000 (10:51 +0100)]
Document AM_*FLAGS and relation to *FLAGS

10 years agoPut leaf makefile to the test by default
Michal Sojka [Tue, 12 Nov 2013 09:14:30 +0000 (10:14 +0100)]
Put leaf makefile to the test by default

10 years agoUse synctex to ease documentation editting
Michal Sojka [Tue, 12 Nov 2013 08:30:26 +0000 (09:30 +0100)]
Use synctex to ease documentation editting

10 years agoUpdate introduction
Michal Sojka [Tue, 12 Nov 2013 08:20:10 +0000 (09:20 +0100)]
Update introduction

10 years agoWhitespace and copyright
Michal Sojka [Tue, 12 Nov 2013 07:47:15 +0000 (08:47 +0100)]
Whitespace and copyright

10 years agoRun test first for Linux, then other platforms
Michal Sojka [Mon, 11 Nov 2013 11:15:50 +0000 (12:15 +0100)]
Run test first for Linux, then other platforms

Serious breakage will thus be detected faster.

10 years agoOmkize target always creates Makefile wherever Makefile.omk exists
Michal Sojka [Mon, 11 Nov 2013 10:30:06 +0000 (11:30 +0100)]
Omkize target always creates Makefile wherever Makefile.omk exists

Previously, it only rewrote existing Makefiles, which was not so useful
for new projects.

Added test for omkize target.

10 years agoImprove QT tests to check for the error fixed by Pavel recently
Michal Sojka [Mon, 28 Oct 2013 18:21:27 +0000 (19:21 +0100)]
Improve QT tests to check for the error fixed by Pavel recently

10 years agoRun subtests in a separate directory
Michal Sojka [Mon, 28 Oct 2013 19:01:01 +0000 (20:01 +0100)]
Run subtests in a separate directory

This makes subtests easier to understand, because one need not to read
the whole test script to figure out in which state we actualy are.

10 years agoQT: Fix bug in *.pro search which prevent QT_SUBDIRS to work for other than direct...
Pavel Pisa [Fri, 25 Oct 2013 22:29:16 +0000 (00:29 +0200)]
QT: Fix bug in *.pro search which prevent QT_SUBDIRS to work for other than direct make invocation directory.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
10 years agoRun one QT test verbosely
Michal Sojka [Fri, 4 Oct 2013 15:52:17 +0000 (17:52 +0200)]
Run one QT test verbosely

This is to allow manual inspection of which qmake was used. Wheter the
default one (qmake) or the one specified in QMAKE environment variable.

10 years agoFix qt-qmake test that failed
Michal Sojka [Fri, 4 Oct 2013 15:51:15 +0000 (17:51 +0200)]
Fix qt-qmake test that failed

The reason was recent removal of qt.files.

10 years agoSimplify manual execution of QT test
Michal Sojka [Fri, 4 Oct 2013 15:50:13 +0000 (17:50 +0200)]
Simplify manual execution of QT test

Now it is not necessary to specify OMK_RULES as it default to linux.