OVMS3-idf/tools/ci
Ivan Grokhotkov 1e1450bf5d make: fix issues related to EXTRA_COMPONENT_DIRS
1. When one of the COMPONENT_DIRS points to a component directory
(i.e. a directory containing component.mk, not a directory of multiple
components), and there is a subdirectory in it which also contains
a component, the subdirectory was mistakenly added to the list of
components and compiled.

For example:

    main/
        component.mk
        main.c
        test/
            component.mk
            test_main.c

Would compile test_main.c and link libtest.a.

2. When one of the COMPONENT_DIRS points to a component directory, and
the parent directory contained a directory with the same name as
another component, that directory would be mistakenly added to the
COMPONENT_PATHS.

For example:

    esp/
        esp-idf/
        esp32/
            (random stuff)
        mycomponent/
            component.mk
            mycomponent.c
        myproject/
            main/
            Makefile

and Makefile sets EXTRA_COMPONENT_DIRS=$(realpath ../mycomponent),
then "esp32" directory which is at the same level as mycomponent
was added to COMPONENT_PATHS.

3. If EXTRA_COMPONENT_DIRS pointed to a directory with a list of
components, and one of the subdirectories was not a component, but
had the same name as another component, than that directory would be
mistakenly added to COMPONENT_PATHS instead of the real esp32
component directory.

For example:

    my_components/
        my_component/
            component.mk
            my_component.c
        esp32/
            (some random stuff)

and EXTRA_COMPONENT_DIRS would point to my_components/, then "esp32"
directory would be added to COMPONENT_PATHS instead of the real esp32
component directory.
2019-02-28 21:58:03 +08:00
..
apply_bot_filter.py ci: support jobs which don’t run unless triggered by name 2018-04-19 15:08:08 +08:00
build_examples.sh build: Fix problems with building kconfig and generating sdkconfig 2018-03-28 10:39:20 +08:00
build_examples_cmake.sh cmake: Fix some failing example builds, fix gcov 2018-10-30 10:59:39 +11:00
check-executable.sh ci: check for executable flag on source files 2018-05-29 20:07:45 +08:00
check_examples_cmake_make.sh cmake: make main a component again 2018-09-13 11:13:27 +08:00
checkout_project_ref.py CI: support customize test with @bot 2017-11-08 11:36:16 +08:00
configure_ci_environment.sh build: Fix problems with building kconfig and generating sdkconfig 2018-03-28 10:39:20 +08:00
executable-list.txt ci: Fix spurious pipeline failure when deploying a tag to GitHub 2018-09-07 15:21:51 +08:00
get-full-sources.sh ci: Use local mirrors on the public branches (master, release-) too 2018-08-28 23:43:30 +08:00
mirror-list.txt mbedtls: re-add version 2.9.0 as a submodule 2018-05-09 23:15:28 +08:00
mirror-submodule-update.sh build: Fix problems with building kconfig and generating sdkconfig 2018-03-28 10:39:20 +08:00
mirror-synchronize.sh build: Fix problems with building kconfig and generating sdkconfig 2018-03-28 10:39:20 +08:00
push_to_github.sh ci: Fix spurious pipeline failure when deploying a tag to GitHub 2018-09-07 15:21:51 +08:00
setup_python.sh CI: Support switching between various versions of Python 2018-10-22 12:56:07 +02:00
test_build_system.sh make: fix issues related to EXTRA_COMPONENT_DIRS 2019-02-28 21:58:03 +08:00
test_build_system_cmake.sh tools: fix cmake build script for sdkconfig test 2018-11-15 01:13:02 +08:00
test_configure_ci_environment.sh CI: Move the ci-related staff to a separate directory 2017-06-30 11:57:07 +08:00