summaryrefslogtreecommitdiff
path: root/lib/bt/linker.lf
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2024-03-28 14:32:49 +1100
committerjacqueline <me@jacqueline.id.au>2024-03-28 14:32:49 +1100
commitee29c25b29eaa4fac4e897442634b69ecc8d8125 (patch)
tree8c5f1a140463f20f104316fa3492984e191154e9 /lib/bt/linker.lf
parent239e6d89507a24c849385f4bfa93ac4ad58e5de5 (diff)
downloadtangara-fw-ee29c25b29eaa4fac4e897442634b69ecc8d8125.tar.gz
Fork ESP-IDF's bluetooth component
i want better sbc encoding, and no cla will stop me
Diffstat (limited to 'lib/bt/linker.lf')
-rw-r--r--lib/bt/linker.lf57
1 files changed, 57 insertions, 0 deletions
diff --git a/lib/bt/linker.lf b/lib/bt/linker.lf
new file mode 100644
index 00000000..debff10a
--- /dev/null
+++ b/lib/bt/linker.lf
@@ -0,0 +1,57 @@
+[sections:bt_bss]
+entries:
+ .bss+
+
+[sections:bt_common]
+entries:
+ COMMON
+
+[scheme:bt_start_end]
+entries:
+ bt_bss -> dram0_bss
+ bt_common -> dram0_bss
+ data -> dram0_data
+
+# For the following fragments, order matters for
+# 'ALIGN(4) ALIGN(4, post) SURROUND(sym)', which generates:
+#
+# . = ALIGN(4)
+# _sym_start
+# ...
+# . = ALIGN(4)
+# _sym_end
+
+[mapping:bt]
+archive: libbt.a
+entries:
+ if ESP_ALLOW_BSS_SEG_EXTERNAL_MEMORY = y:
+ * (extram_bss)
+ else:
+ * (bt_start_end);
+ bt_bss -> dram0_bss ALIGN(4) ALIGN(4, post) SURROUND(bt_bss),
+ bt_common -> dram0_bss ALIGN(4) ALIGN(4, post) SURROUND(bt_common),
+ data -> dram0_data ALIGN(4) ALIGN(4, post) SURROUND(bt_data)
+
+[mapping:btdm]
+archive: libbtdm_app.a
+entries:
+ * (bt_start_end);
+ bt_bss -> dram0_bss ALIGN(4) ALIGN(4, post) SURROUND(btdm_bss),
+ bt_common -> dram0_bss ALIGN(4) ALIGN(4, post) SURROUND(btdm_common),
+ data -> dram0_data ALIGN(4) ALIGN(4, post) SURROUND(btdm_data)
+
+[mapping:bt_controller]
+archive: libble_app.a
+entries:
+ * (bt_start_end);
+ bt_bss -> dram0_bss ALIGN(4) ALIGN(4, post) SURROUND(bt_controller_bss),
+ bt_common -> dram0_bss ALIGN(4) ALIGN(4, post) SURROUND(bt_controller_common),
+ data -> dram0_data ALIGN(4) ALIGN(4, post) SURROUND(bt_controller_data)
+
+[mapping:nimble]
+archive: libnimble.a
+entries:
+ * (bt_start_end);
+ bt_bss -> dram0_bss ALIGN(4) ALIGN(4, post) SURROUND(nimble_bss),
+ bt_common -> dram0_bss ALIGN(4) ALIGN(4, post) SURROUND(nimble_common),
+ data -> dram0_data ALIGN(4) ALIGN(4, post) SURROUND(nimble_data)