mirror of
				https://github.com/oplus-giulia-dev/android_hardware_oplus
				synced 2025-11-04 13:55:35 +08:00 
			
		
		
		
	gpt-utils: Make BSG/SG configurable
Change-Id: Ibbadee63bddcf03a259649aec9cb0dab6c206833
This commit is contained in:
		
				
					committed by
					
						
						Łukasz Patron
					
				
			
			
				
	
			
			
			
						parent
						
							95e9749902
						
					
				
				
					commit
					8aa74e5081
				
			@@ -11,3 +11,4 @@
 | 
			
		||||
| OPLUS_LINEAGE_TOUCH_HAL | INCLUDE_DIR | Device specific include dir path | |
 | 
			
		||||
| OPLUS_LINEAGE_VIBRATOR_HAL | INCLUDE_DIR | Device specific include dir path | |
 | 
			
		||||
| OPLUS_LINEAGE_VIBRATOR_HAL | USE_EFFECT_STREAM | Enable effect stream feature | false |
 | 
			
		||||
| QTI_GPT_UTILS | USE_BSG_FRAMEWORK | Enable BSG framework feature | true |
 | 
			
		||||
 
 | 
			
		||||
@@ -7,24 +7,24 @@ cc_library_shared {
 | 
			
		||||
    name: "android.hardware.boot@1.1-impl-qti",
 | 
			
		||||
    stem: "android.hardware.boot@1.0-impl-1.1-qti",
 | 
			
		||||
    defaults: ["android.hardware.boot@1.1-impl-qti_defaults"],
 | 
			
		||||
    static_libs: ["libgptutils-sg.oplus"],
 | 
			
		||||
    static_libs: ["libgptutils.oplus"],
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cc_library_shared {
 | 
			
		||||
    name: "android.hardware.boot@1.2-impl-qti",
 | 
			
		||||
    stem: "android.hardware.boot@1.0-impl-1.2-qti",
 | 
			
		||||
    defaults: ["android.hardware.boot@1.2-impl-qti_defaults"],
 | 
			
		||||
    static_libs: ["libgptutils-bsg.oplus"],
 | 
			
		||||
    static_libs: ["libgptutils.oplus"],
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cc_binary {
 | 
			
		||||
    name: "android.hardware.boot-service.qti",
 | 
			
		||||
    defaults: ["android.hardware.boot-service.qti_defaults"],
 | 
			
		||||
    static_libs: ["libgptutils-bsg.oplus"],
 | 
			
		||||
    static_libs: ["libgptutils.oplus"],
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cc_binary {
 | 
			
		||||
    name: "android.hardware.boot-service.qti.recovery",
 | 
			
		||||
    defaults: ["android.hardware.boot-service.qti.recovery_defaults"],
 | 
			
		||||
    static_libs: ["libgptutils-bsg.oplus"],
 | 
			
		||||
    static_libs: ["libgptutils.oplus"],
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -3,7 +3,7 @@
 | 
			
		||||
// SPDX-License-Identifier: Apache-2.0
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
cc_defaults {
 | 
			
		||||
cc_library {
 | 
			
		||||
    name: "libgptutils.oplus",
 | 
			
		||||
    export_include_dirs: ["."],
 | 
			
		||||
    header_libs: ["generated_kernel_headers"],
 | 
			
		||||
@@ -13,20 +13,13 @@ cc_defaults {
 | 
			
		||||
        "liblog",
 | 
			
		||||
        "libz",
 | 
			
		||||
    ],
 | 
			
		||||
    cflags: select(soong_config_variable("QTI_GPT_UTILS", "USE_BSG_FRAMEWORK"), {
 | 
			
		||||
        "false": [],
 | 
			
		||||
        default: ["-D_BSG_FRAMEWORK_KERNEL_HEADERS"],
 | 
			
		||||
    }),
 | 
			
		||||
    srcs: [
 | 
			
		||||
        "gpt-utils.cpp",
 | 
			
		||||
        "recovery-ufs-bsg.cpp",
 | 
			
		||||
    ],
 | 
			
		||||
    vendor: true,
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cc_library {
 | 
			
		||||
    name: "libgptutils-sg.oplus",
 | 
			
		||||
    defaults: ["libgptutils.oplus"],
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
cc_library {
 | 
			
		||||
    name: "libgptutils-bsg.oplus",
 | 
			
		||||
    defaults: ["libgptutils.oplus"],
 | 
			
		||||
    cflags: ["-D_BSG_FRAMEWORK_KERNEL_HEADERS"],
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user