[dpdk-dev] [PATCH v7 2/8] eal: add header files to support os specifics

Anand Rawat anand.rawat at intel.com
Tue Apr 2 05:52:42 CEST 2019


On 4/1/2019 4:09 PM, Thomas Monjalon wrote:
> Hi,
> 
> An update of the legacy Makefiles is missing.
> It should be something like that:
> 
> --- a/lib/librte_eal/freebsd/eal/Makefile
> +++ b/lib/librte_eal/freebsd/eal/Makefile
> @@ -86,7 +86,7 @@ CFLAGS_eal_thread.o += -Wno-return-type
>   CFLAGS_eal_hpet.o += -Wno-return-type
>   endif
>   
> -INC :=  # no bsd specific headers
> +INC := rte_os.h
>   
>   SYMLINK-$(CONFIG_RTE_EXEC_ENV_FREEBSD)-include := $(addprefix include/,$(INC))
>   
> --- a/lib/librte_eal/linux/eal/Makefile
> +++ b/lib/librte_eal/linux/eal/Makefile
> @@ -93,7 +93,8 @@ ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y)
>   CFLAGS_eal_thread.o += -Wno-return-type
>   endif
>   
> -INC := rte_kni_common.h
> +INC := rte_os.h
> +INC += rte_kni_common.h
>   
>   SYMLINK-$(CONFIG_RTE_EXEC_ENV_LINUX)-include := $(addprefix include/,$(INC))
> 

Adding the change to v8 along with a change in 
mk/target/<os>/rte.vars.mk to include path 'librte_eal/<OS>/eal/include'
for rte_os.h. This is done to make it available during the build process.

-- 
Anand Rawat


More information about the dev mailing list