Skip to content

Commit

Permalink
[QPG] Replace qpg6105 with qpg_target_ic and qpg_target_board. (#27522)
Browse files Browse the repository at this point in the history
Removing absolute references for re-use with other targets.
  • Loading branch information
tima-q authored and pull[bot] committed Nov 27, 2023
1 parent 8cadcdf commit 2757465
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions third_party/qpg_sdk/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ qpg_make_build("qpg_bootloader") {
"WORKDIR=" + rebase_path(target_gen_dir, root_build_dir) +
"/${qpg_sdk_lib_dir}/Bootloader_${qpg_target_ic}_compr_secure",
"UMB_WORKDIR=" + rebase_path(target_gen_dir, root_build_dir) +
"/${qpg_sdk_lib_dir}/UMB_QPG6105DK_B01_nrt_flash_compr_secure",
"/${qpg_sdk_lib_dir}/UMB_${qpg_target_board}_nrt_flash_compr_secure",
]
}
config("qpg_retain_bootloader") {
Expand All @@ -169,7 +169,7 @@ static_library("qpg_bootloader_lib") {

qpg_make_build("qpg_openthread_glue") {
make_sources = [ "${qpg_sdk_root}/Components/Qorvo/Matter" ]
make_output = [ "${target_gen_dir}/${qpg_sdk_lib_dir}/OpenThreadQorvoGlue_qpg6105_ftd/libOpenThreadQorvoGlue_${qpg_target_ic}_ftd.a" ]
make_output = [ "${target_gen_dir}/${qpg_sdk_lib_dir}/OpenThreadQorvoGlue_${qpg_target_ic}_ftd/libOpenThreadQorvoGlue_${qpg_target_ic}_ftd.a" ]
make_args = [
"-f",
rebase_path(qpg_sdk_root, root_build_dir) + "/Libraries/Qorvo/OpenThreadQorvoGlue/Makefile.OpenThreadQorvoGlue_${qpg_target_ic}_ftd",
Expand All @@ -183,7 +183,7 @@ qpg_make_build("qpg_openthread_glue") {
}
static_library("qpg_openthread_glue_lib") {
deps = [ "${chip_root}/third_party/qpg_sdk:qpg_openthread_glue" ]
libs = [ "${target_gen_dir}/${qpg_sdk_lib_dir}/OpenThreadQorvoGlue_qpg6105_ftd/libOpenThreadQorvoGlue_${qpg_target_ic}_ftd.a" ]
libs = [ "${target_gen_dir}/${qpg_sdk_lib_dir}/OpenThreadQorvoGlue_${qpg_target_ic}_ftd/libOpenThreadQorvoGlue_${qpg_target_ic}_ftd.a" ]
}

qpg_make_build("qpg_light_factorydata") {
Expand Down
3 changes: 3 additions & 0 deletions third_party/qpg_sdk/qpg_sdk.gni
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ declare_args() {
# Target IC for QPG SDK
qpg_target_ic = "qpg6105"

# Target board for QPG SDK
qpg_target_board = "QPG6105DK_B01"

# an option to disable referencing qorvo object archive files (*.a)
qpg_sdk_include_platform_libs = true

Expand Down

0 comments on commit 2757465

Please sign in to comment.