Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1bd15a2f authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "techpack: add tech package support"

parents c1f578ac 50327f34
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -146,6 +146,3 @@ x509.genkey
arch/*/configs/vendor/*-gki_defconfig
arch/*/configs/vendor/*-qgki_defconfig
arch/*/configs/vendor/*-qgki-debug_defconfig

# Tech package directories
techpack/
+3 −1
Original line number Diff line number Diff line
@@ -614,7 +614,7 @@ endif
ifeq ($(KBUILD_EXTMOD),)
# Objects we will link into vmlinux / subdirs we need to visit
init-y		:= init/
drivers-y	:= drivers/ sound/
drivers-y	:= drivers/ sound/ techpack/
drivers-$(CONFIG_SAMPLES) += samples/
net-y		:= net/
libs-y		:= lib/
@@ -1210,6 +1210,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/$(SRCARCH)/include/uapi $(hdr-dst)
	$(Q)$(MAKE) $(hdr-inst)=techpack

PHONY += headers_check_all
headers_check_all: headers_install_all
@@ -1219,6 +1220,7 @@ PHONY += headers_check
headers_check: headers_install
	$(Q)$(MAKE) $(hdr-inst)=include/uapi dst=include HDRCHECK=1
	$(Q)$(MAKE) $(hdr-inst)=arch/$(SRCARCH)/include/uapi $(hdr-dst) HDRCHECK=1
	$(Q)$(MAKE) $(hdr-inst)=techpack HDRCHECK=1

ifdef CONFIG_HEADERS_CHECK
all: headers_check

techpack/.gitignore

0 → 100644
+4 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0-only
# ignore all subdirs except stub
!/stub/
*/

techpack/Kbuild

0 → 100644
+8 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0-only
TECHPACK?=y

techpack-dirs := $(shell find $(srctree)/$(src) -maxdepth 1 -mindepth 1 -type d -not -name ".*")
obj-${TECHPACK} += stub/ $(addsuffix /,$(subst $(srctree)/$(src)/,,$(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)))

techpack/stub/Makefile

0 → 100644
+3 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0-only
ccflags-y := -Wno-unused-function
obj-y := stub.o
Loading