Build fixes

This commit is contained in:
brooksytech
2024-08-26 20:08:42 +01:00
committed by spycat88
parent 0e26e35cb1
commit 1b6eeac1fb
5 changed files with 21 additions and 14 deletions
+5
View File
@@ -605,6 +605,11 @@ ifeq ($(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-stack-usage.sh $(CC)),y)
endif
KBUILD_CFLAGS += $(call cc-option,-Wno-format-nonliteral)
KBUILD_CFLAGS += $(call cc-disable-warning, address-of-packed-member)
KBUILD_CFLAGS += $(call cc-disable-warning, dangling-pointer)
KBUILD_CFLAGS += $(call cc-disable-warning, address)
KBUILD_CFLAGS += $(call cc-disable-warning, maybe-uninitialized)
KBUILD_CFLAGS += $(call cc-disable-warning, enum-int-mismatch)
# turn jbsr into jsr for m68k
ifeq ($(ARCH),m68k)
-7
View File
@@ -28,11 +28,9 @@ dtb-$(CONFIG_EXYNOS5) += exynos5250-arndale.dtb \
exynos5422-odroidxu3.dtb
dtb-$(CONFIG_EXYNOS7420) += exynos7420-espresso7420.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += \
rk3036-sdk.dtb \
rk3066a-mk808.dtb \
rk3126-evb.dtb \
rk3128-evb.dtb \
rk3188-radxarock.dtb \
rk3288-evb.dtb \
rk3288-fennec.dtb \
rk3288-firefly.dtb \
@@ -46,11 +44,6 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += \
rk3288-veyron-minnie.dtb \
rk3288-vyasa.dtb \
rk3308-evb.dtb \
rk3328-evb.dtb \
rk3368-lion.dtb \
rk3368-sheep.dtb \
rk3368-geekbox.dtb \
rk3368-px5-evb.dtb \
rk3399-evb.dtb \
rk3399-firefly.dtb \
rk3399-puma-ddr1333.dtb \
+16 -5
View File
@@ -21,6 +21,8 @@
DECLARE_GLOBAL_DATA_PTR;
#define RUMBLE_GPIO 15 /* GPIO0_B7 */
#define ALIVE_LED_GPIO 17 /* GPIO0_C1 */
#define WIFI_EN_GPIO 110 /* GPIO3_B6 */
@@ -36,6 +38,14 @@ bool is_odroidgo3(void)
return false;
}
void board_rumble(void)
{
gpio_request(RUMBLE_GPIO, "rumble");
gpio_direction_output(RUMBLE_GPIO, 0);
gpio_free(RUMBLE_GPIO);
}
void board_alive_led(void)
{
gpio_request(ALIVE_LED_GPIO, "alive_led");
@@ -160,8 +170,9 @@ int rk_board_late_init(void)
if (is_odroidgo3())
disp_offs = 9;
board_rumble();
/* turn on blue led */
board_alive_led();
//board_alive_led();
/* set wifi_en as default high */
if (!is_odroidgo3())
@@ -194,10 +205,10 @@ int rk_board_late_init(void)
#endif
/* show boot logo and version */
lcd_show_logo();
lcd_setfg_color("grey");
lcd_printf(0, 18 + disp_offs, 1, " %s", U_BOOT_VERSION);
lcd_printf(0, 19 + disp_offs, 1, " %s %s", U_BOOT_DATE, U_BOOT_TIME);
//lcd_show_logo();
//lcd_setfg_color("red");
//lcd_printf(0, 18 + disp_offs, 1, " %s", U_BOOT_VERSION);
//lcd_printf(0, 19 + disp_offs, 1, " %s %s", U_BOOT_DATE, U_BOOT_TIME);
if (!board_check_autotest()) {
board_run_autotest();
-1
View File
@@ -38,7 +38,6 @@ LINECOMMENT "//".*\n
#include "srcpos.h"
#include "dtc-parser.tab.h"
YYLTYPE yylloc;
extern bool treesource_error;
/* CAUTION: this will stop working if we ever use yyless() or yyunput() */
-1
View File
@@ -631,7 +631,6 @@ char *yytext;
#include "srcpos.h"
#include "dtc-parser.tab.h"
YYLTYPE yylloc;
extern bool treesource_error;
/* CAUTION: this will stop working if we ever use yyless() or yyunput() */