From 57a1f37eba130bad5705fbbf2e8034971d728e15 Mon Sep 17 00:00:00 2001 From: yepings Date: Tue, 27 Jan 2026 11:25:12 +0800 Subject: [PATCH 1/7] Updated license to BSD-3-Clause-Clear --- LICENSE.txt | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/LICENSE.txt b/LICENSE.txt index 389b547..b4d6638 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -13,14 +13,16 @@ met: contributors may be used to endorse or promote products derived from this software without specific prior written permission. -THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED +NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE +GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT +HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT -ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS -BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE -OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file From 459805eb4a0d93b3ba173bf7c0e88f7db5247bc1 Mon Sep 17 00:00:00 2001 From: yepings Date: Tue, 27 Jan 2026 13:52:05 +0800 Subject: [PATCH 2/7] Added BSD-3-Clause-Clear in License file --- LICENSE.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/LICENSE.txt b/LICENSE.txt index b4d6638..ee19010 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -9,7 +9,7 @@ met: copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. -* Neither the name of the copyright holder nor the names of its +* Neither the name of Qualcomm Technologies, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. @@ -25,4 +25,6 @@ GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN -IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file +IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +SPDX-License-Identifier: BSD-3-Clause-Clear \ No newline at end of file From ed13d691fac071338bde774c20680e127404e866 Mon Sep 17 00:00:00 2001 From: Sandhya Adavikolanu Date: Tue, 27 Jan 2026 22:13:15 -0800 Subject: [PATCH 3/7] Create qcom-preflight-checks.yml Signed-off-by: Sandhya Adavikolanu --- .github/workflows/qcom-preflight-checks.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/qcom-preflight-checks.yml diff --git a/.github/workflows/qcom-preflight-checks.yml b/.github/workflows/qcom-preflight-checks.yml new file mode 100644 index 0000000..6bcb70e --- /dev/null +++ b/.github/workflows/qcom-preflight-checks.yml @@ -0,0 +1,21 @@ +name: QC Preflight Checks +on: + pull_request: + push: + branches: [ "main" ] + workflow_dispatch: + +jobs: + preflight: + name: Run QC Preflight Checks + uses: qualcomm/qcom-reusable-workflows/.github/workflows/reusable-qcom-preflight-checks-orchestrator.yml@v2 + with: + enable-semgrep-scan: true + enable-dependency-review: true + enable-repolinter-check: true + enable-copyright-license-check: true + enable-commit-email-check: true + enable-commit-msg-check: false + permissions: + contents: read + security-events: write From 4382a0a310bca8468b4cff2074ef478b6efbcd4c Mon Sep 17 00:00:00 2001 From: Thamballi Sreelalitha Date: Mon, 13 Apr 2026 22:29:06 +0530 Subject: [PATCH 4/7] DTBExtnLib: Fix unused variable warning for bts/ets Guard bts/ets declaration and init under #ifdef ENABLE_DTB_PROFILING since they are only used within that block. Signed-off-by: Thamballi Sreelalitha --- libs/DTBExtnLib/DTBExtnLib_node.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/DTBExtnLib/DTBExtnLib_node.c b/libs/DTBExtnLib/DTBExtnLib_node.c index 79edd1f..84e5413 100644 --- a/libs/DTBExtnLib/DTBExtnLib_node.c +++ b/libs/DTBExtnLib/DTBExtnLib_node.c @@ -785,9 +785,11 @@ fdt_get_node_handle ( char ibuffer[DTB_LINE_BUF_SIZE]; #endif + #ifdef ENABLE_DTB_PROFILING uint64_t bts, ets; __init_timer_mem_api (); bts = ets = __dtb_get_time_us (); + #endif PTR_CHECK (node); PTR_CHECK (name); From 7911fec5621326233f16856389ca32ce80709136 Mon Sep 17 00:00:00 2001 From: Thamballi Sreelalitha Date: Tue, 14 Apr 2026 14:38:29 +0530 Subject: [PATCH 5/7] DTSelectLib: Use PrintLib.h instead of PrintShLib.h Signed-off-by: Thamballi Sreelalitha --- libs/DTSelectLib/Environment/dt_select_env.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/DTSelectLib/Environment/dt_select_env.h b/libs/DTSelectLib/Environment/dt_select_env.h index cc20513..5983508 100644 --- a/libs/DTSelectLib/Environment/dt_select_env.h +++ b/libs/DTSelectLib/Environment/dt_select_env.h @@ -6,7 +6,7 @@ #define DT_SELECT_CUSTOM_ENV_H_ #ifdef TARGET_UEFI #include -#include +#include #else /* Use below header file for using standard datatype */ #include From 889ddbbec9de02740eb4036f7f154da5447dc9eb Mon Sep 17 00:00:00 2001 From: Vishal Oliyil Kunnil Date: Fri, 1 May 2026 17:49:29 -0700 Subject: [PATCH 6/7] DTExnLib: Move to using DtFrameworkLibSupport.h Move to using DtFrameworkLibSupport.h instead of QcomBaseLib.h. Signed-off-by: Vishal Oliyil Kunnil --- libs/DTBExtnLib/DTBExtnLib_node.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/DTBExtnLib/DTBExtnLib_node.c b/libs/DTBExtnLib/DTBExtnLib_node.c index 84e5413..de402e2 100644 --- a/libs/DTBExtnLib/DTBExtnLib_node.c +++ b/libs/DTBExtnLib/DTBExtnLib_node.c @@ -16,9 +16,9 @@ #if defined (TARGET_UEFI) #include - #include #include #include + #include #elif defined (TARGET_XBL) #include #include From c71ce7babdd7d03e6a0830acfa237986bd3b2b82 Mon Sep 17 00:00:00 2001 From: Vishal Oliyil Kunnil Date: Sat, 9 May 2026 12:50:00 -0700 Subject: [PATCH 7/7] Global: Move to using DEBUG_* macro Signed-off-by: Vishal Oliyil Kunnil --- libs/DTBExtnLib/DTBExtnLib_env.h | 2 +- libs/DTBExtnLib/DTBExtnLib_node.c | 4 ++-- libs/DTSelectLib/Environment/dt_select_env.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libs/DTBExtnLib/DTBExtnLib_env.h b/libs/DTBExtnLib/DTBExtnLib_env.h index 5fb5eab..47f20e1 100644 --- a/libs/DTBExtnLib/DTBExtnLib_env.h +++ b/libs/DTBExtnLib/DTBExtnLib_env.h @@ -31,7 +31,7 @@ /*========================================================================*/ #if defined (TARGET_UEFI) -#define dtb_log(...) DEBUG ((EFI_D_WARN, ##__VA_ARGS__)) +#define dtb_log(...) DEBUG ((DEBUG_WARN, ##__VA_ARGS__)) #elif defined (TARGET_XBL) #define dtb_log(...) \ {\ diff --git a/libs/DTBExtnLib/DTBExtnLib_node.c b/libs/DTBExtnLib/DTBExtnLib_node.c index de402e2..fb3292d 100644 --- a/libs/DTBExtnLib/DTBExtnLib_node.c +++ b/libs/DTBExtnLib/DTBExtnLib_node.c @@ -230,7 +230,7 @@ __dtb_malloc ( if (FreeBufferPtr == NULL) { if ((FreeBufferPtr = AllocateZeroPoolNoFree (EFI_PAGE_SIZE)) == NULL) { - DEBUG ((EFI_D_WARN, "MemoryAlloc failed\n")); + DEBUG ((DEBUG_WARN, "MemoryAlloc failed\n")); *ppMem = NULL; } @@ -241,7 +241,7 @@ __dtb_malloc ( dwSize = (dwSize + MEMORY_ALLOC_ALIGN_MASK) & (~MEMORY_ALLOC_ALIGN_MASK); if (FreeBufferPtr + dwSize > EndPtr) { if ((FreeBufferPtr = AllocateZeroPoolNoFree (EFI_PAGE_SIZE)) == NULL) { - DEBUG ((EFI_D_WARN, "MemoryAlloc failed\n")); + DEBUG ((DEBUG_WARN, "MemoryAlloc failed\n")); ASSERT (FreeBufferPtr != NULL); *ppMem = NULL; } diff --git a/libs/DTSelectLib/Environment/dt_select_env.c b/libs/DTSelectLib/Environment/dt_select_env.c index 534c4b7..70210e3 100644 --- a/libs/DTSelectLib/Environment/dt_select_env.c +++ b/libs/DTSelectLib/Environment/dt_select_env.c @@ -65,7 +65,7 @@ LOG_MESSAGE_WRAPPER ( ) { #if 0 - DEBUG ((EFI_D_WARN, buffer_ptr)); + DEBUG ((DEBUG_WARN, buffer_ptr)); #else boot_log_message(buffer_ptr); #endif @@ -154,7 +154,7 @@ LOG_MESSAGE_WRAPPER ( char *buffer_ptr ) { - DEBUG ((EFI_D_WARN, buffer_ptr)); + DEBUG ((DEBUG_WARN, buffer_ptr)); } size_t