aboutsummaryrefslogtreecommitdiffstats
path: root/lib/reltool/src/reltool.hrl
diff options
context:
space:
mode:
authorHåkan Mattsson <[email protected]>2010-04-01 10:37:29 +0200
committerHåkan Mattsson <[email protected]>2010-04-19 13:17:33 +0200
commit21db0d0e7e7112d7c257ed19fc8e3c0a90d4698b (patch)
tree602a79bd3db23d792a621e7c5d063c51788ca5bb /lib/reltool/src/reltool.hrl
parentbc5807db3a4bb72395da7d32f4bee4a4678e8bfe (diff)
downloadotp-21db0d0e7e7112d7c257ed19fc8e3c0a90d4698b.tar.gz
otp-21db0d0e7e7112d7c257ed19fc8e3c0a90d4698b.tar.bz2
otp-21db0d0e7e7112d7c257ed19fc8e3c0a90d4698b.zip
Introduced a new embedded_app_type option
It is for embedded systems where all included applications must be loaded from the boot script. If embedded_app_type is set to something else than undefined all included applications will be included in both the "rel" as well as in the "script".
Diffstat (limited to 'lib/reltool/src/reltool.hrl')
-rw-r--r--lib/reltool/src/reltool.hrl11
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/reltool/src/reltool.hrl b/lib/reltool/src/reltool.hrl
index b3f06e8753..7c9f519878 100644
--- a/lib/reltool/src/reltool.hrl
+++ b/lib/reltool/src/reltool.hrl
@@ -17,7 +17,7 @@
%% %CopyrightEnd%
-define(APPLICATION, reltool).
--define(MISSING_APP, '*MISSING*').
+-define(MISSING_APP_NAME, '*MISSING*').
-define(MISSING_APP_TEXT, "*MISSING*").
-type file() :: string().
@@ -187,7 +187,7 @@
%% Static target cond
debug_info :: debug_info() | undefined,
app_file :: app_file() | undefined,
- app_type :: app_type(),
+ app_type :: app_type() | undefined,
incl_app_filters :: incl_app_filters(),
excl_app_filters :: excl_app_filters(),
incl_archive_filters :: incl_archive_filters(),
@@ -242,7 +242,8 @@
excl_archive_filters :: excl_archive_filters(),
archive_opts :: [archive_opt()],
relocatable :: boolean(),
- app_type :: app_type(),
+ rel_app_type :: app_type(),
+ embedded_app_type :: app_type() | undefined,
app_file :: app_file(),
debug_info :: debug_info()
}).
@@ -267,7 +268,8 @@
-define(DEFAULT_EMU_NAME, "beam").
-define(DEFAULT_PROFILE, development).
-define(DEFAULT_RELOCATABLE, true).
--define(DEFAULT_APP_TYPE, permanent).
+-define(DEFAULT_REL_APP_TYPE, permanent).
+-define(DEFAULT_EMBEDDED_APP_TYPE, undefined).
-define(DEFAULT_APP_FILE, keep).
-define(DEFAULT_DEBUG_INFO, keep).
@@ -292,6 +294,7 @@
"^priv",
"^include"]).
-define(EMBEDDED_EXCL_APP_FILTERS, []).
+-define(EMBEDDED_APP_TYPE, load).
-define(STANDALONE_INCL_SYS_FILTERS, ["^bin/(erl|epmd)(|\\.exe|\\.ini)\$",
"^bin/start(|_clean).boot\$",