mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-14 21:10:27 +01:00
ARM: qca: Added fdt-fixup for RPM version
Added fdt-fixup for patching RPM version string to kernel device-tree that may be required for test automation and build component information. Change-Id: I6dedecbe17ecea1a211e3d0a8d64aa1f3835f821 Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
This commit is contained in:
parent
e700f9ba7e
commit
622fd6199b
2 changed files with 11 additions and 0 deletions
|
|
@ -119,6 +119,16 @@ void ipq_fdt_fixup_version(void *blob)
|
|||
if (ret)
|
||||
debug("fdt-fixup: unable to set TZ version(%d)\n", ret);
|
||||
}
|
||||
|
||||
#ifdef RPM_VERSION
|
||||
if (!smem_get_build_version(ver, sizeof(ver), RPM_VERSION)) {
|
||||
debug("RPM Build Version: %s\n", ver);
|
||||
ret = fdt_setprop(blob, nodeoff, "rpm_version",
|
||||
ver, strlen(ver));
|
||||
if (ret)
|
||||
debug("fdt-fixup: unable to set RPM version(%d)\n", ret);
|
||||
}
|
||||
#endif /* RPM_VERSION */
|
||||
}
|
||||
|
||||
void ipq_fdt_fixup_mtdparts(void *blob, struct flash_node_info *ni)
|
||||
|
|
|
|||
|
|
@ -233,6 +233,7 @@ extern loff_t board_env_size;
|
|||
#define SCM_CMD_TZ_FORCE_DLOAD_ID 0x10
|
||||
#define BOOT_VERSION 0
|
||||
#define TZ_VERSION 1
|
||||
#define RPM_VERSION 3
|
||||
#endif
|
||||
|
||||
#define CONFIG_FDT_FIXUP_PARTITIONS
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue