Browse Source

recovery: Add awk lib and driver

Change-Id: I013c596319737ca5b7c0470d6921a7e16b8ceca3
Tom Marshall 2 years ago
parent
commit
93a7ed3a41
3 changed files with 6 additions and 0 deletions
  1. 4
    0
      Android.mk
  2. 1
    0
      recovery.cpp
  3. 1
    0
      recovery_cmds.h

+ 4
- 0
Android.mk View File

@@ -193,6 +193,9 @@ LOCAL_STATIC_LIBRARIES += \
193 193
     libselinux \
194 194
     libz
195 195
 
196
+LOCAL_WHOLE_STATIC_LIBRARIES += \
197
+    libawk_main
198
+
196 199
 # Libraries for FS tools
197 200
 LOCAL_WHOLE_STATIC_LIBRARIES += \
198 201
     libext2fs \
@@ -285,6 +288,7 @@ RECOVERY_TOOLS := \
285 288
     gzip \
286 289
     unzip \
287 290
     zip \
291
+    awk \
288 292
     $(FILESYSTEM_TOOLS)
289 293
 LOCAL_POST_INSTALL_CMD := $(hide) $(foreach t,$(RECOVERY_TOOLS),ln -sf ${LOCAL_MODULE} $(LOCAL_MODULE_PATH)/$(t);)
290 294
 

+ 1
- 0
recovery.cpp View File

@@ -95,6 +95,7 @@ static const struct recovery_cmd recovery_cmds[] = {
95 95
   { "unzip",          miniunz_main },
96 96
   { "zip",            minizip_main },
97 97
   { "sh",             mksh_main },
98
+  { "awk",            awk_main },
98 99
 
99 100
   /* Filesystem tools */
100 101
   { "e2fsdroid",        e2fsdroid_main },

+ 1
- 0
recovery_cmds.h View File

@@ -29,6 +29,7 @@ int poweroff_main(int argc, char **argv);
29 29
 int start_main(int argc, char **argv);
30 30
 int stop_main(int argc, char **argv);
31 31
 int mksh_main(int argc, char **argv);
32
+int awk_main(int argc, char **argv);
32 33
 
33 34
 /* Filesystem tools */
34 35
 int e2fsdroid_main(int argc, char **argv);