diff --git a/Makefile b/Makefile index a66abded17ce..e22dc0e6e560 100644 --- a/Makefile +++ b/Makefile @@ -604,7 +604,7 @@ scripts: scripts_basic include/config/auto.conf include/config/tristate.conf \ # Objects we will link into vmlinux / subdirs we need to visit init-y := init/ -drivers-y := drivers/ sound/ firmware/ +drivers-y := drivers/ sound/ firmware/ techpack/ net-y := net/ libs-y := lib/ core-y := usr/ @@ -1382,6 +1382,7 @@ headers_install: __headers $(error Headers not exportable for the $(SRCARCH) architecture)) $(Q)$(MAKE) $(hdr-inst)=include/uapi dst=include $(Q)$(MAKE) $(hdr-inst)=arch/$(hdr-arch)/include/uapi $(hdr-dst) + $(Q)$(MAKE) $(hdr-inst)=techpack PHONY += headers_check_all headers_check_all: headers_install_all @@ -1391,6 +1392,7 @@ PHONY += headers_check headers_check: headers_install $(Q)$(MAKE) $(hdr-inst)=include/uapi dst=include HDRCHECK=1 $(Q)$(MAKE) $(hdr-inst)=arch/$(hdr-arch)/include/uapi $(hdr-dst) HDRCHECK=1 + $(Q)$(MAKE) $(hdr-inst)=techpack HDRCHECK=1 # --------------------------------------------------------------------------- # Kernel selftest diff --git a/techpack/.gitignore b/techpack/.gitignore new file mode 100644 index 000000000000..4b6ebed753e5 --- /dev/null +++ b/techpack/.gitignore @@ -0,0 +1,13 @@ +# Copyright (c) 2016-2018, The Linux Foundation. All rights reserved. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License version 2 and +# only version 2 as published by the Free Software Foundation. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# ignore all subdirs except stub +!/stub/ diff --git a/techpack/Kbuild b/techpack/Kbuild new file mode 100644 index 000000000000..aa304462426b --- /dev/null +++ b/techpack/Kbuild @@ -0,0 +1,18 @@ +# Copyright (c) 2016-2018, The Linux Foundation. All rights reserved. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License version 2 and +# only version 2 as published by the Free Software Foundation. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +TECHPACK?=y + +techpack-dirs := $(shell find $(srctree)/techpack -maxdepth 1 -mindepth 1 -type d -not -name ".*") +obj-${TECHPACK} += stub/ $(addsuffix /,$(subst $(srctree)/techpack/,,$(techpack-dirs))) + +techpack-header-dirs := $(shell find $(srctree)/techpack -maxdepth 1 -mindepth 1 -type d -not -name ".*") +header-${TECHPACK} += $(addsuffix /include/uapi/,$(subst $(srctree)/techpack/,,$(techpack-header-dirs))) diff --git a/techpack/stub/Makefile b/techpack/stub/Makefile new file mode 100644 index 000000000000..305e07bb8293 --- /dev/null +++ b/techpack/stub/Makefile @@ -0,0 +1,3 @@ +# SPDX-License-Identifier: GPL-2.0-only +ccflags-y := -Wno-unused-function +obj-y := stub.o diff --git a/techpack/stub/include/uapi/Kbuild b/techpack/stub/include/uapi/Kbuild new file mode 100644 index 000000000000..ef0f400666f4 --- /dev/null +++ b/techpack/stub/include/uapi/Kbuild @@ -0,0 +1,2 @@ +# SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note +#Stub place holder diff --git a/techpack/stub/stub.c b/techpack/stub/stub.c new file mode 100644 index 000000000000..7fe36b81d695 --- /dev/null +++ b/techpack/stub/stub.c @@ -0,0 +1,15 @@ +/* Copyright (c) 2019-2020, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +static void _techpack_stub(void) +{ +}