# -*-makefile-*- # # Copyright (C) 2009 by Marc Kleine-Budde # # See CREDITS for details about who has contributed to this project. # # For further information about the PTXdist project and license conditions # see the README file. # # # import kconfig tree from package into ptxdist # # package must setup variable _KCONFIG # that points to the toplevel KCONFIG file # # the kconfig tree will be found in # $(PTXDIST_IMPORTDIR)/config/ # all symbols are prefixed with # # if PTXDIST_IMPORTDIR is omitted, PTXDIST_TOPLEVEL will be used # # the import is started with: # ptxdist make _import [PTXDIST_IMPORTDIR=] # %_import: $(STATEDIR)/%.extract @$(call targetinfo) @PTXDIST_IMPORTDIR="$(PTXDIST_IMPORTDIR)"; \ PTXDIST_IMPORTDIR="$${PTXDIST_IMPORTDIR:-$(PTXDIST_TOPDIR)}" \ gawk -f "${PTXDIST_LIB_DIR}/ptxd_make_import.awk" \ "$(*)" "$($(PTX_MAP_TO_PACKAGE_$(*))_KCONFIG)" # vim: syntax=make