platform_vendor_tequila/build/tasks
Tom Marshall f15c371403 lineage: build: kernel: Rework kernel module logic
The existing kernel module logic does not detect failed kernel module
builds.  This is because the module build logic is a long shell chain
that invokes make macros which are not intended to be used in this way.
The essense of the issue is that we get a shell chain that looks like:

	cmd && cmd && var=value; cmd && var=value; cmd;

The shell breaks this into three separate commands.  The first builds
the modules.  The other two are the macro invocations.  So the result
of the command is the result of the last macro invocation, which will
always succeed even if the modules fail to build.

The issue is made worse by the existing build rule conflating the built
kernel modules and the installed kernel modules.

Fix this by reducing the built kernel module command to a single shell
command and creating a separate target INSTALLED_KERNEL_MODULES.  Any
kernel module build failure will show up properly.  The commands for
INSTALLED_KERNEL_MODULES do not invoke any macros and should avoid the
issue described above.

Finally, this also removes the fake target no-external-modules and
unifies the install logic for in-tree and out-of-tree modules.

Change-Id: I3d13056e217e1e937c8c3a345032682ffc394bca
2017-11-15 23:57:39 +00:00
..
addonsu.mk vendor: change vendor to lineage 2017-08-23 03:26:28 +03:00
apicheck.mk vendor/lineage: sdk rebrand: step 2: update file contents 2017-10-12 22:33:59 +00:00
bacon.mk tasks: enhancement to create LineageOS ota package 2017-08-25 07:57:31 -05:00
dt_image.mk lineage: Complete the rebrand 2017-08-23 17:33:22 +03:00
generate_lineage_sdk_coverage.mk vendor/lineage: Rebrand cleanup 2017-11-14 05:32:14 +00:00
http_curl_prebuilt.sh http_prebuilt: Implement archive of artifacts 2017-01-09 13:42:29 +00:00
kernel.mk lineage: build: kernel: Rework kernel module logic 2017-11-15 23:57:39 +00:00