-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: ZHANG Yuntian <[email protected]>
- Loading branch information
1 parent
e5f3bc5
commit cf1c7c9
Showing
5 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: ZHANG Yuntian <[email protected]> | ||
Date: Mon, 4 Mar 2024 17:00:58 +0800 | ||
Subject: [PATCH] Disable warnings | ||
|
||
--- | ||
Makefile | 5 +++++ | ||
1 file changed, 5 insertions(+) | ||
|
||
diff --git a/Makefile b/Makefile | ||
index 69cdd0d2946c3..585cba7482248 100644 | ||
--- a/Makefile | ||
+++ b/Makefile | ||
@@ -1083,6 +1088,11 @@ KBUILD_CFLAGS += $(call cc-option,-Werror=designated-init) | ||
# change __FILE__ to the relative path from the srctree | ||
KBUILD_CPPFLAGS += $(call cc-option,-fmacro-prefix-map=$(srctree)/=) | ||
|
||
+# Disable warnings in Rockchip drivers | ||
+KBUILD_CFLAGS += $(call cc-disable-warning, unused-variable) | ||
+KBUILD_CFLAGS += $(call cc-disable-warning, incompatible-pointer-types) | ||
+KBUILD_CFLAGS += $(call cc-disable-warning, return-type) | ||
+ | ||
# include additional Makefiles when needed | ||
include-y := scripts/Makefile.extrawarn | ||
include-$(CONFIG_DEBUG_INFO) += scripts/Makefile.debug | ||
-- | ||
2.44.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../.common/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../.rockchip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
BSP_GIT="https://github.com/radxa/kernel.git" | ||
BSP_BRANCH="linux-6.1-stan-rkr1" | ||
BSP_DEFCONFIG="rockchip_linux_defconfig" | ||
SUPPORTED_BOARDS=( | ||
"rk2312" | ||
#"rock-5b" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Disable outdated pwm-gpio driver | ||
# Could be replaced with: | ||
# https://patchwork.ozlabs.org/project/linux-gpio/list/?series=393553 | ||
# CONFIG_PWM_GPIO is not set | ||
|
||
# enum dw_pcie_as_type is declared in pcie-dw-rockchip.c, | ||
# but not in pcie-dw-ep-rockchip.c | ||
# CONFIG_PCIE_DW_ROCKCHIP_EP is not set | ||
|
||
# RK3399's midgard driver is not updated yet | ||
# CONFIG_MALI_MIDGARD is not set | ||
|
||
# RK3588 uses Valhall so disable this outdated driver as well | ||
# CONFIG_MALI400 is not set | ||
|
||
# cpufreq_interactive uses unexported functions | ||
CONFIG_CPU_FREQ_GOV_INTERACTIVE=y |