summaryrefslogtreecommitdiff
path: root/common/firmware_image.S
diff options
context:
space:
mode:
Diffstat (limited to 'common/firmware_image.S')
-rw-r--r--common/firmware_image.S10
1 files changed, 8 insertions, 2 deletions
diff --git a/common/firmware_image.S b/common/firmware_image.S
index aaaed19921..8a4fc7f9a2 100644
--- a/common/firmware_image.S
+++ b/common/firmware_image.S
@@ -8,10 +8,10 @@
#include "config.h"
-#define FW_FILE(builddir,proj,sect) builddir##/##proj##.##sect##.flat
+#define FW_FILE(builddir,proj,sect) builddir##/##sect##/##proj##.##sect##.flat
#define STRINGIFY0(name) #name
#define STRINGIFY(name) STRINGIFY0(name)
-#define FW_IMAGE(sect) STRINGIFY(FW_FILE(OUTDIR,PROJECT,sect))
+#define FW_IMAGE(sect) STRINGIFY(FW_FILE(FINAL_OUTDIR,PROJECT,sect))
/* Read Only firmware */
#ifdef CONFIG_FW_INCLUDE_RO
@@ -19,6 +19,12 @@
.incbin FW_IMAGE(RO)
#endif
+/* Shared objects library */
+#ifdef CONFIG_SHAREDLIB
+.section .image.libsharedobjs, "ax"
+.incbin STRINGIFY(FINAL_OUTDIR/libsharedobjs/libsharedobjs.flat)
+#endif
+
/* Read Write firmware */
.section .image.RW, "ax"
.incbin FW_IMAGE(RW)