From dfd6f8f016c4bf0d659dbfc24f0ee356a8d0973f Mon Sep 17 00:00:00 2001 From: Sushrut1101 Date: Sat, 14 May 2022 15:59:17 +0530 Subject: [PATCH] hiphi: gpt-utils: Use Generic Kernel Headers * Kernel source will no longer be needed to build the recovery Signed-off-by: Sushrut1101 Signed-off-by: 7Soldier --- gpt-utils/Android.bp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gpt-utils/Android.bp b/gpt-utils/Android.bp index 2726744..fb5801a 100644 --- a/gpt-utils/Android.bp +++ b/gpt-utils/Android.bp @@ -14,7 +14,6 @@ // limitations under the License. // - cc_library { name: "libgptutils.moto_sm8450", vendor: true, @@ -27,6 +26,8 @@ cc_library { cflags: [ "-Wall", "-Werror", + "-Wno-unused-parameter", + "-D_GENERIC_KERNEL_HEADERS", "-D_BSG_FRAMEWORK_KERNEL_HEADERS", ], srcs: [ @@ -35,7 +36,7 @@ cc_library { ], owner: "qti", header_libs: [ - "generated_kernel_headers", + "device_kernel_headers", ], export_include_dirs: ["."], }