Skip to content

Commit

Permalink
build: drop LEGACY_INCLUDE_PATH support
Browse files Browse the repository at this point in the history
LEGACY_INCLUDE_PATH has been defaulting to "n" and marked as deprecated
in both v3.2 and v3.3. Drop the option entirely for v3.4.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
  • Loading branch information
fabiobaltieri authored and carlescufi committed Feb 21, 2023
1 parent f874ba2 commit 9b30667
Show file tree
Hide file tree
Showing 12 changed files with 0 additions and 117 deletions.
4 changes: 0 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,6 @@ add_library(zephyr_interface INTERFACE)
# flags that come with zephyr_interface.
zephyr_library_named(zephyr)

if(CONFIG_LEGACY_INCLUDE_PATH)
zephyr_include_directories(include/zephyr)
endif()

zephyr_include_directories(
include
${PROJECT_BINARY_DIR}/include/generated
Expand Down
11 changes: 0 additions & 11 deletions Kconfig.zephyr
Original file line number Diff line number Diff line change
Expand Up @@ -932,14 +932,3 @@ config COMPAT_INCLUDES
deprecated header files.

endmenu

config LEGACY_INCLUDE_PATH
bool "Allow for the legacy include paths (without the zephyr/ prefix) (DEPRECATED)"
select DEPRECATED
help
DEPRECATED: Allow applications and libraries to use the Zephyr legacy
include path which does not use the zephyr/ prefix. For example, the
preferred way to include a Zephyr header is to use <zephyr/kernel.h>,
but enabling CONFIG_LEGACY_INCLUDE_PATH will allow developers to use
<kernel.h> instead. This (without the zephyr/ prefix) is deprecated
and should be avoided. Eventually, it will not be supported.
1 change: 0 additions & 1 deletion boards/x86/ehl_crb/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ set_property(GLOBAL APPEND PROPERTY extra_post_build_commands
-c ${CMAKE_C_COMPILER}
-o ${CMAKE_OBJCOPY}
-i ${ZEPHYR_BASE}/include
$<$<BOOL:${CONFIG_LEGACY_INCLUDE_PATH}>:${ZEPHYR_BASE}/include/zephyr>
-f ${PROJECT_BINARY_DIR}/${CONFIG_KERNEL_BIN_NAME}.elf
$<$<BOOL:${CMAKE_VERBOSE_MAKEFILE}>:--verbose>
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
Expand Down
1 change: 0 additions & 1 deletion boards/x86/qemu_x86/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ set_property(GLOBAL APPEND PROPERTY extra_post_build_commands
COMMAND ${PYTHON_EXECUTABLE} ${PROJECT_SOURCE_DIR}/arch/x86/zefi/zefi.py
-c ${CMAKE_C_COMPILER}
-i ${ZEPHYR_BASE}/include
$<$<BOOL:${CONFIG_LEGACY_INCLUDE_PATH}>:${ZEPHYR_BASE}/include/zephyr>
-o ${CMAKE_OBJCOPY}
-f ${PROJECT_BINARY_DIR}/${CONFIG_KERNEL_BIN_NAME}.elf
$<$<BOOL:${CMAKE_VERBOSE_MAKEFILE}>:--verbose>
Expand Down
1 change: 0 additions & 1 deletion boards/x86/rpl_crb/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ set_property(GLOBAL APPEND PROPERTY extra_post_build_commands
-c ${CMAKE_C_COMPILER}
-o ${CMAKE_OBJCOPY}
-i ${ZEPHYR_BASE}/include
$<$<BOOL:${CONFIG_LEGACY_INCLUDE_PATH}>:${ZEPHYR_BASE}/include/zephyr>
-f ${PROJECT_BINARY_DIR}/${CONFIG_KERNEL_BIN_NAME}.elf
$<$<BOOL:${CMAKE_VERBOSE_MAKEFILE}>:--verbose>
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
Expand Down
1 change: 0 additions & 1 deletion boards/x86/up_squared/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ set_property(GLOBAL APPEND PROPERTY extra_post_build_commands
-c ${CMAKE_C_COMPILER}
-o ${CMAKE_OBJCOPY}
-i ${ZEPHYR_BASE}/include
$<$<BOOL:${CONFIG_LEGACY_INCLUDE_PATH}>:${ZEPHYR_BASE}/include/zephyr>
-f ${PROJECT_BINARY_DIR}/${CONFIG_KERNEL_BIN_NAME}.elf
$<$<BOOL:${CMAKE_VERBOSE_MAKEFILE}>:--verbose>
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
Expand Down
2 changes: 0 additions & 2 deletions include/zephyr/zephyr.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@

#include <zephyr/kernel.h>

#ifndef CONFIG_LEGACY_INCLUDE_PATH
#warning "<zephyr/zephyr.h> is deprecated, include <zephyr/kernel.h> instead"
#endif

#endif /* ZEPHYR_INCLUDE_ZEPHYR_H_ */
1 change: 0 additions & 1 deletion modules/hal_rpi_pico/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ if(CONFIG_HAS_RPI_PICO)
-DZEPHYR_BASE=${ZEPHYR_BASE}
-DFLASH_TYPE=${flash_type}
-DPYTHON_EXECUTABLE=${Python3_EXECUTABLE}
-DCONFIG_LEGACY_INCLUDE_PATH=$<BOOL:${CONFIG_LEGACY_INCLUDE_PATH}>
-DRP2_BOOTLOADER_BYPRODUCT=${rp2_bootloader_asm}
INSTALL_COMMAND "" # No installation needed
BUILD_BYPRODUCTS ${rp2_bootloader_asm}
Expand Down
4 changes: 0 additions & 4 deletions modules/hal_rpi_pico/bootloader/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@ target_include_directories(boot_stage2 PUBLIC
${ZEPHYR_BASE}/include
)

if(CONFIG_LEGACY_INCLUDE_PATH)
target_include_directories(boot_stage2 PUBLIC ${ZEPHYR_BASE}/include/zephyr)
endif()

target_link_options(boot_stage2 PRIVATE
"-nostartfiles"
"--specs=nosys.specs"
Expand Down
85 changes: 0 additions & 85 deletions scripts/utils/migrate_includes.py

This file was deleted.

2 changes: 0 additions & 2 deletions subsys/testsuite/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ add_subdirectory_ifdef(CONFIG_ZTEST ztest)

if(CONFIG_TEST)
zephyr_include_directories(${ZEPHYR_BASE}/subsys/testsuite/include)
zephyr_include_directories_ifdef(
CONFIG_LEGACY_INCLUDE_PATH ${ZEPHYR_BASE}/subsys/testsuite/include/zephyr)
endif()
add_subdirectory_ifdef(CONFIG_COVERAGE_GCOV coverage)

Expand Down
4 changes: 0 additions & 4 deletions subsys/testsuite/ztest/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ zephyr_include_directories(
${ZEPHYR_BASE}/subsys/testsuite/include
${ZEPHYR_BASE}/subsys/testsuite/ztest/include
)
zephyr_include_directories_ifdef(
CONFIG_LEGACY_INCLUDE_PATH ${ZEPHYR_BASE}/subsys/testsuite/include/zephyr)
zephyr_include_directories_ifdef(
CONFIG_LEGACY_INCLUDE_PATH ${ZEPHYR_BASE}/subsys/testsuite/ztest/include/zephyr)

if(DEFINED TC_RUNID)
zephyr_compile_definitions(TC_RUNID=${TC_RUNID})
Expand Down

0 comments on commit 9b30667

Please sign in to comment.