diff options
author | SzuWei Lin <szuweilin@google.com> | 2022-04-22 13:05:30 +0800 |
---|---|---|
committer | SzuWei Lin <szuweilin@google.com> | 2022-04-25 10:56:11 +0800 |
commit | 239b3e9cdaa980c64eb8698ea3821aa46985b2e3 (patch) | |
tree | c298bd61343d7396799ae4a9926ec7f6d58001d0 /gki_common.mk | |
parent | c44d96b20db626d6233fc6904a1fdc7b21346afa (diff) | |
download | common-239b3e9cdaa980c64eb8698ea3821aa46985b2e3.tar.gz |
Unfold the result of output-kernelt_frc_odp_330442040t_frc_odp_330442000t_frc_ase_330444010android13-frc-odp-releaseandroid13-dev
The number of file kernel versions and output files are not reduced.
We don't need output-kernel now.
Bug: 230047219
Test: TH with gki_arm64 and gki_x86_64
Change-Id: I7d74595dce9e398990ea08ed805ce0bb81df7f97
(cherry picked from commit ceb6b290af57b33217128c93325303a84ec77c64)
Diffstat (limited to 'gki_common.mk')
-rw-r--r-- | gki_common.mk | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/gki_common.mk b/gki_common.mk index 1d301c0..42b9a6c 100644 --- a/gki_common.mk +++ b/gki_common.mk @@ -14,74 +14,6 @@ # limitations under the License. # -# The files will be copy from the source folder to the dist folder -_output-kernel-info-files := \ - prebuilt-info.txt \ - manifest.xml \ - - -# Copy the files from the source folder to the dist folder -# -# Skip if the file is not existing. -# -# $(1): file list -# $(2): the source folder -# $(3): the dist folder -define _output_kernel_files -$(foreach f,$(1), \ - $(if $(wildcard $(2)/$(f)), \ - $(call dist-for-goals,dist_files,$(2)/$(f):$(3)/$(f)))) -endef - - -# Output the release kernel prebuilt files to dist folder -# -# $(1): the source folder contains the kernel prebuilt files -# -# Notes: -# For mainline kernel, it outputs -allsyms kernel as release kernel. -# -define _output-kernel-user -$(if $(findstring mainline,$(1)), \ - $(eval PRODUCT_COPY_FILES += \ - $(foreach f,$(wildcard $(1)/kernel-*-allsyms), \ - $(f):$(subst -allsyms,,$(notdir $(f))))), \ - $(eval PRODUCT_COPY_FILES += \ - $(call copy-files,$(filter-out *-allsyms,$(wildcard $(1)/kernel-*)),.))) -endef - - -# Output the debug kernel prebuilt files to dist folder -# -# $(1): the source folder contains the kernel prebuilt files -# -# Note: -# For mainline kernel, it outputs -allsyms kernel as release kernel, -# so there is no need to output -allsyms again. -# -define _output-kernel-debug -$(if $(findstring mainline,$(1)),, \ - $(eval PRODUCT_COPY_FILES += \ - $(call copy-files,$(wildcard $(1)/kernel-*-allsyms),.))) -endef - - -# Output the kernel prebuilt files to dist folder -# -# $(1): the source folder contains the kernel prebuilt files -# $(2): the dist folder -# -# Example: -# $(call output-kernel,kernel/prebuilts/5.10/arm64,kernel/5.10) -# -define output-kernel -$(call _output-kernel-user,$(1)) -$(call _output_kernel_files,$(_output-kernel-info-files),$(1),$(2)) -$(if $(filter userdebug eng,$(TARGET_BUILD_VARIANT)), \ - $(call _output-kernel-debug,$(1)) \ - $(call _output_kernel_files,$(_output-kernel-info-files),$(1),$(2)-debug)) -endef - # # Output boot.img # |