Use soong namespace to branch a implementation of insmod.sh . The newly added implementation is only added to PRODUCT_PACKAGE for dev option enabled devices. The only change to the script is skip loading kernel modules from vendor|system_dlkm when under 16K mode. Test: Dev option works Bug: 319335586 Change-Id: Ice77c19cad47f299db113f11878182f37e0b6f91
10 lines
317 B
Makefile
10 lines
317 B
Makefile
ifeq (true,$(PRODUCT_16K_DEVELOPER_OPTION))
|
|
PRODUCT_SOONG_NAMESPACES += device/google/gs-common/insmod/16k
|
|
else
|
|
PRODUCT_SOONG_NAMESPACES += device/google/gs-common/insmod/4k
|
|
endif
|
|
|
|
BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs-common/insmod/sepolicy
|
|
PRODUCT_PACKAGES += \
|
|
insmod.sh \
|
|
init.common.cfg
|