aboutsummaryrefslogtreecommitdiffstats
path: root/updater/updater.c
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2009-06-19 11:22:06 -0700
committerDoug Zongker <dougz@android.com>2009-06-22 14:00:44 -0700
commit2b0fdc657115a4fe02af279fdbdab99c68df0a1a (patch)
tree18b992fb671d18310abc5f21364ac50cdbade177 /updater/updater.c
parentb128f54d0daa749d301b99a6637f42aa35822a76 (diff)
downloadbootable_recovery-2b0fdc657115a4fe02af279fdbdab99c68df0a1a.zip
bootable_recovery-2b0fdc657115a4fe02af279fdbdab99c68df0a1a.tar.gz
bootable_recovery-2b0fdc657115a4fe02af279fdbdab99c68df0a1a.tar.bz2
add device extension mechanism to updater
Allow devices (in BoardConfig.mk) to define additional static libraries to be linked in to updater, to make device-specific functions available in edify scripts. Modify the updater makefile to arrange for device libraries to register their edify functions.
Diffstat (limited to 'updater/updater.c')
-rw-r--r--updater/updater.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/updater/updater.c b/updater/updater.c
index 31d93ae..1aa277c 100644
--- a/updater/updater.c
+++ b/updater/updater.c
@@ -23,6 +23,11 @@
#include "install.h"
#include "minzip/Zip.h"
+// Generated by the makefile, this function defines the
+// RegisterDeviceExtensions() function, which calls all the
+// registration functions for device-specific extensions.
+#include "register.inc"
+
// Where in the package we expect to find the edify script to execute.
// (Note it's "updateR-script", not the older "update-script".)
#define SCRIPT_NAME "META-INF/com/google/android/updater-script"
@@ -76,6 +81,7 @@ int main(int argc, char** argv) {
RegisterBuiltins();
RegisterInstallFunctions();
+ RegisterDeviceExtensions();
FinishRegistration();
// Parse the script.