Skip to content
Snippets Groups Projects
Commit 21360cad authored by Armin Luntzer's avatar Armin Luntzer
Browse files

Add config option for inclusion of and application executable to the

embedded image
parent 3d2632da
No related branches found
No related tags found
No related merge requests found
...@@ -87,6 +87,16 @@ config EMBED_MODULES_IMAGE ...@@ -87,6 +87,16 @@ config EMBED_MODULES_IMAGE
generated modules into the final kernel binary. generated modules into the final kernel binary.
This is a convenience option, if unsure, say Y. This is a convenience option, if unsure, say Y.
config EMBED_APPLICATION
string "Embed an application image"
depends on EMBED_MODULES_IMAGE
default ""
help
Specify a path to an executable to embed or leave it empty.
Note: in the current implementation, the executable is treated as a
kernel module, so it requires to be relocatible and have a init/exit
call.
endif # MODULES endif # MODULES
...@@ -160,4 +170,5 @@ config DEBUG_INFO_REDUCED ...@@ -160,4 +170,5 @@ config DEBUG_INFO_REDUCED
DEBUG_INFO build and compile times are reduced too. DEBUG_INFO build and compile times are reduced too.
Only works with newer gcc versions. Only works with newer gcc versions.
endmenu endmenu
...@@ -309,7 +309,9 @@ if [ "$1" = "embed" ]; then ...@@ -309,7 +309,9 @@ if [ "$1" = "embed" ]; then
rm -f modules.image rm -f modules.image
${AR} rcs ${srctree}/modules.image \ ${AR} rcs ${srctree}/modules.image \
$(tr '\n' ' ' < ${srctree}/modules.order) \ $(tr '\n' ' ' < ${srctree}/modules.order) \
$(find dsp/xentium -name *.xen) $(find dsp/xentium -name *.xen) \
"${CONFIG_EMBED_APPLICATION}"
leanos_link "${kallsymso}" leanos "${embedflags}" leanos_link "${kallsymso}" leanos "${embedflags}"
exit exit
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment