use a separate kernel configuration for user and userdebug/eng #349

Closed
thestinger opened this Issue Jul 22, 2016 · 2 comments

Comments

Projects
None yet
2 participants
@thestinger
Contributor

thestinger commented Jul 22, 2016

No description provided.

@thestinger

This comment has been minimized.

Show comment Hide comment
@thestinger

thestinger Aug 4, 2016

Contributor

This is now implemented.

Contributor

thestinger commented Aug 4, 2016

This is now implemented.

@stellirin

This comment has been minimized.

Show comment Hide comment
@stellirin

stellirin Aug 10, 2016

Perhaps a better way is to use CM's kernel.mk in /build and make use of the TARGET_KERNEL_ADDITIONAL_CONFIG option which appends to the main defconfig.

create $(KERNEL_SRC)/arch/arm64/configs/copperheados_debug_config with the extras you want, and add this to device repo:

# Enable debug on debug builds
ifneq ($(TARGET_BUILD_VARIANT),user)
TARGET_KERNEL_ADDITIONAL_CONFIG := copperheados_debug_config
endif

This also gives you inline kernel build without the need to modify the kernel as it is automatically picked up during build.

(or just copy the relevant parts to each kernel's AndroidKernel.mk.)

Perhaps a better way is to use CM's kernel.mk in /build and make use of the TARGET_KERNEL_ADDITIONAL_CONFIG option which appends to the main defconfig.

create $(KERNEL_SRC)/arch/arm64/configs/copperheados_debug_config with the extras you want, and add this to device repo:

# Enable debug on debug builds
ifneq ($(TARGET_BUILD_VARIANT),user)
TARGET_KERNEL_ADDITIONAL_CONFIG := copperheados_debug_config
endif

This also gives you inline kernel build without the need to modify the kernel as it is automatically picked up during build.

(or just copy the relevant parts to each kernel's AndroidKernel.mk.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment