OVMS3-idf/tools/ci
Ivan Grokhotkov 8bbd99ad9e 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 20:38:31 +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 ci, examples: use sdkconfig.ci as an extra defaults file, if present 2019-01-22 10:15:10 +01:00
build_examples_cmake.sh ci, examples: use sdkconfig.ci as an extra defaults file, if present 2019-01-22 10:15:10 +01:00
check-executable.sh ci: check for executable flag on source files 2018-05-29 20:07:45 +08:00
check-line-endings.sh ci: Add line endings check for CRLF in repository 2018-07-12 19:10:37 +08:00
check_artifacts_expire_time.py Fix Python 3 compatibility issues 2018-10-24 11:20:54 +02:00
check_examples_cmake_make.sh cmake: add ulp components build support 2018-09-13 14:54:59 +08:00
check_ut_cmake_make.sh cmake: Add support for test build 2018-10-20 12:07:24 +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
envsubst.py mqtt tests: connect to local broker when running in CI to make the tests more reliable 2019-01-21 06:36:02 +01:00
executable-list.txt ci, examples: use sdkconfig.ci as an extra defaults file, if present 2019-01-22 10:15:10 +01:00
get-full-sources.sh ci: Use local mirrors on the public branches (master, release-) too 2018-07-23 17:04:38 +08:00
mirror-list.txt protobuf-c : Added Google's protocol buffer C library as sub-module 2018-10-02 19:07:28 +05:30
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
multirun_with_pyenv.sh CI: Simplify running commands with several versions of Python 2018-09-06 11:50:17 +02:00
push_to_github.sh ci: Fix spurious pipeline failure when deploying a tag to GitHub 2018-08-22 13:11:18 +10:00
setup_python.sh CI: Update Python 3 ignore list 2018-11-05 08:11:02 +01:00
test_build_system.sh make: fix issues related to EXTRA_COMPONENT_DIRS 2019-02-28 20:38:31 +08:00
test_build_system_cmake.sh tool: Add unit test for Kconfig gen 2019-01-25 14:11:35 +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