Skip to content

Commit

Permalink
kernelflinger: add the sbl_cd build target
Browse files Browse the repository at this point in the history
Test Done:
1. android boot
2. crashdump function works

Tracked-On: OAM-126307
Signed-off-by: Bo He <[email protected]>
Signed-off-by: Haoyu Tang <[email protected]>
  • Loading branch information
bhe4 authored and sysopenci committed Oct 11, 2024
1 parent c4c5e81 commit ab62899
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,26 @@ LOCAL_C_INCLUDES += \
$(addprefix $(LOCAL_PATH)/,libsslsupport)
include $(BUILD_SBL_EXECUTABLE)

include $(CLEAR_VARS)
# crash dump for sbl
LOCAL_MODULE := cd4sbl-$(TARGET_BUILD_VARIANT)
LOCAL_MODULE_STEM := cd4sbl
LOCAL_CFLAGS := $(SHARED_CFLAGS)

LOCAL_CFLAGS += -D__CRASH_DUMP

LOCAL_STATIC_LIBRARIES += \
$(SHARED_STATIC_LIBRARIES) \
libpayload \
libefiwrapper-cd-$(TARGET_BUILD_VARIANT) \
libefiwrapper_drivers-cd-$(TARGET_BUILD_VARIANT) \
efiwrapper-cd-$(TARGET_BUILD_VARIANT)

LOCAL_SRC_FILES := \
crashdump.c

include $(BUILD_SBL_EXECUTABLE)

endif #KERNELFLINGER_SUPPORT_NON_EFI_BOOT


Expand Down

0 comments on commit ab62899

Please sign in to comment.