1、INTERNAL_KERNEL_CMDLINE是一串字符串,由BOARD_KERNEL_CMDLINE變量,再拼接buildvariant+$(VERITY_KEYID)而成。 其中,BOARD_KERNEL_CMDLINE變量在device/asr/aquilac_phone/BoardConfig中定義 vim build/core/Makefile
/* The header_version of boot.img and recovery.img must be 1 */
BOARD_BOOTIMG_HEADER_VERSION:=1
BOARD_MKBOOTIMG_ARGS:=--header_version $(BOARD_BOOTIMG_HEADER_VERSION)
/* Kernel loader address is where the kernel binary to be loaded. Before that, we have */
/* Android header (0x800 long) and AIMG header (0x20 long). Be aware to adjust these */
/* offsets when the header size is changed. */
#define CONFIG_ASR_BOOT 1
#define BOOTIMG_HEAD_SIZE 0x800
#define AIMG_HEAD_SIZE 0x20
#define AIMG_TAIL_SIZE 0x100
#define SIGNED_BOOTIMG_LOADADDR (KERNEL_LOADADDR - BOOTIMG_HEAD_SIZE - AIMG_HEAD_SIZE)
#define BOOTIMG_LOADADDR (KERNEL_LOADADDR - BOOTIMG_HEAD_SIZE)