From 767632e1af41534718c47b74ffb395f9a020ee28 Mon Sep 17 00:00:00 2001 From: Stefan Kalkowski Date: Tue, 3 Jan 2023 09:53:25 +0100 Subject: [PATCH] dde_linux: remove leftovers of legacy fec_nic_drv Some relicts in `repos/dde_linux/lib`. Ref #4651 --- .../lib/import/import-fec_nic_include.mk | 5 --- repos/dde_linux/lib/mk/fec_nic_include.mk | 35 ------------------- 2 files changed, 40 deletions(-) delete mode 100644 repos/dde_linux/lib/import/import-fec_nic_include.mk delete mode 100644 repos/dde_linux/lib/mk/fec_nic_include.mk diff --git a/repos/dde_linux/lib/import/import-fec_nic_include.mk b/repos/dde_linux/lib/import/import-fec_nic_include.mk deleted file mode 100644 index 7c410190c4..0000000000 --- a/repos/dde_linux/lib/import/import-fec_nic_include.mk +++ /dev/null @@ -1,5 +0,0 @@ -LX_CONTRIB_DIR := $(call select_from_ports,dde_linux)/src/drivers/nic/fec -SRC_DIR := $(REP_DIR)/src/drivers/nic/fec -INC_DIR += $(LX_CONTRIB_DIR)/drivers/net/ethernet/freescale -INC_DIR += $(LIB_CACHE_DIR)/fec_nic_include/include/include/include -CC_OPT += -U__linux__ -D__KERNEL__ diff --git a/repos/dde_linux/lib/mk/fec_nic_include.mk b/repos/dde_linux/lib/mk/fec_nic_include.mk deleted file mode 100644 index e620915a9a..0000000000 --- a/repos/dde_linux/lib/mk/fec_nic_include.mk +++ /dev/null @@ -1,35 +0,0 @@ -# -# Pseudo library to generate a symlink for each header file included by the -# contrib code. Each symlink points to the same 'lx_emul.h' file, which -# provides our emulation of the Linux kernel API. -# - -ifeq ($(called_from_lib_mk),yes) - -LX_CONTRIB_DIR := $(call select_from_ports,dde_linux)/src/drivers/nic/fec -LX_EMUL_H := $(REP_DIR)/src/drivers/nic/fec/lx_emul.h - -# -# Determine the header files included by the contrib code. For each -# of these header files we create a symlink to 'lx_emul.h'. -# -SCAN_DIRS := $(addprefix $(LX_CONTRIB_DIR)/include/, asm-generic linux net uapi) \ - $(addprefix $(LX_CONTRIB_DIR)/, drivers net) -GEN_INCLUDES := $(shell grep -rIh "^\#include .*" $(SCAN_DIRS) |\ - sed "s/^\#include [^<\"]*[<\"]\([^>\"]*\)[>\"].*/\1/" |\ - sort | uniq) - -# -# Put Linux headers in 'GEN_INC' dir, since some include use "../../" paths use -# three level include hierarchy -# -GEN_INC := $(shell pwd)/include/include/include -GEN_INCLUDES := $(addprefix $(GEN_INC)/,$(GEN_INCLUDES)) - -all: $(GEN_INCLUDES) - -$(GEN_INCLUDES): - $(VERBOSE)mkdir -p $(dir $@) - $(VERBOSE)ln -sf $(LX_EMUL_H) $@ - -endif