Skip to content

Commit

Permalink
fix:air780epm bl和ap的flash布局不一致
Browse files Browse the repository at this point in the history
  • Loading branch information
allewalker committed Dec 31, 2024
1 parent 86045f0 commit 110e9f8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion bootloader/bootloader.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ add_defines("LTO_FEATURE_MODE",
"USBC_USBMST_MGR_FEATURE_DISABLE=1",
"USB_DRV_SMALL_IMAGE=1",
"FEATURE_BOOTLOADER_PROJECT_ENABLE",
"__BL_MODE__",
"__BL_MODE__",
"__USER_CODE__",
"FEATURE_FOTA_HLS_ENABLE",
"FEATURE_FOTA_USBURC_ENABLE",
"FOTA_PRESET_RAM_ENABLE=1",
Expand All @@ -27,6 +28,12 @@ add_ldflags("-flto",
"-flto-partition=none",
"-Wno-lto-type-mismatch",
{force=true})

set_values("project_name", project_name)
if project_name == "luatos" then
add_defines("__LUATOS__")
end


target("driver",function()
set_kind("static")
Expand Down

0 comments on commit 110e9f8

Please sign in to comment.