Error: TARGET_USES_UNCOMPRESSED_KERNEL is depreciated!

While starting my new attempt at an Oreo build for the H811/H815 (T-Mobile LG G4), I ran into an error, right off the bat:

Error: TARGET_USES_UNCOMPRESSED_KERNEL is depreciated!

I took a look at the make files that build the kernel. You can find them in the tasks folder under vendor/lineage/build/tasks/kernel.mk, which has a very lengthy explanation on how to name the kernel to build uncompressed images. Here is the pertinent part:

# BOARD_KERNEL_IMAGE_NAME = Built image name
# for ARM use: zImage
# for ARM64 use: Image.gz
# for uncompressed use: Image
# If using an appended DT, append ‘-dtb’
# to the end of the image name.
# For example, for ARM devices,
# use zImage-dtb instead of zImage.

So all I had to do was remove this line from my device/lge/g4-common/BoardConfigCommon.mk file:

TARGET_USES_UNCOMPRESSED_KERNEL := true

Because my kernel has the naming convention like so:

BOARD_KERNEL_IMAGE_NAME := Image

Which alludes to an uncompressed image already. I love it when the solution is easy!

Linux – keep it simple.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s