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

Commit 680e67d0 authored by Manjunatha Madana's avatar Manjunatha Madana
Browse files

Add build support for Android M to copy headers.



TOP flag is empty in Android M.
Hence ANDROID_BUILD_TOP is used for path resolution.

Change-Id: Icdcc93c6727b06dfe8c5141bd052858ef248b442
Signed-off-by: default avatarManjunatha Madana <mamanj@codeaurora.org>
parent 389755bf
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -160,7 +160,11 @@ KBUILD_CPPFLAGS += $(CDEFINES)

ifeq ($(KERNEL_BUILD), 0)

ifneq ($(TOP), )
HEADER_INSTALL_DIR := $(TOP)/kernel/msm-$(TARGET_KERNEL_VERSION)/scripts
else
HEADER_INSTALL_DIR := $(ANDROID_BUILD_TOP)/kernel/msm-$(TARGET_KERNEL_VERSION)/scripts
endif
UAPI_OUT := $(OUT)/obj/vendor/qcom/opensource/audio-kernel/include
$(shell $(HEADER_INSTALL_DIR)/headers_install.sh $(UAPI_OUT)/linux/ $(AUDIO_ROOT)/include/uapi/linux/ avtimer.h;)
$(shell $(HEADER_INSTALL_DIR)/headers_install.sh $(UAPI_OUT)/linux/ $(AUDIO_ROOT)/include/uapi/linux/ msm_audio.h;)