author | Xindong Xu <xindong.xu@amlogic.com> | 2017-06-13 07:45:22 (GMT) |
---|---|---|
committer | Xindong Xu <xindong.xu@amlogic.com> | 2017-06-14 05:41:50 (GMT) |
commit | d06e9fdd05f06134c278e7693ccb23b44a32bceb (patch) | |
tree | 16aa548e68d1b7f417bc15686c4c464b3777402a | |
parent | b9164398172ee6bbcdbc70c4ac1d87b450bdf13b (diff) | |
download | media_modules-d06e9fdd05f06134c278e7693ccb23b44a32bceb.zip media_modules-d06e9fdd05f06134c278e7693ccb23b44a32bceb.tar.gz media_modules-d06e9fdd05f06134c278e7693ccb23b44a32bceb.tar.bz2 |
PD#145255: generate amlogic files to vendor/
Change-Id: I5c8cad08b992cf688d09190af3a7a879fa77a43e
-rw-r--r-- | Media.mk | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -40,7 +40,11 @@ ifeq (,$(wildcard $(MEDIA_MODULES))) $(shell mkdir $(MEDIA_MODULES) -p) endif +ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 26 && echo OK),OK) +MODS_OUT := $(ANDROID_BUILD_TOP)/$(TARGET_OUT_VENDOR)/lib +else MODS_OUT := $(ANDROID_BUILD_TOP)/$(TARGET_OUT)/lib +endif $(shell cp $(MEDIA_DRIVERS)/* $(MEDIA_MODULES) -rfa) @@ -48,6 +52,7 @@ define media-modules @$(MAKE) -C $(KDIR) M=$(MEDIA_MODULES) ARCH=$(KERNEL_ARCH) \ CROSS_COMPILE=$(PREFIX_CROSS_COMPILE) $(CONFIGS) \ EXTRA_CFLAGS+=-I$(INCLUDE) modules; \ + mkdir -p $(MODS_OUT); \ find $(MEDIA_MODULES) -name "*.ko" | xargs -i cp {} $(MODS_OUT) endef @@ -81,6 +86,7 @@ modules: copy-modules: @echo "start copying media modules." + mkdir -p $(MODS_OUT) $(call copy-media-modules, $(MEDIA_DRIVERS), $(MODS_OUT)) all: modules copy-modules |