summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorzhang sanshan <b51434@freescale.com>2015-09-22 22:11:03 +0800
committerzhang sanshan <b51434@freescale.com>2015-11-06 18:17:39 +0800
commit24356fe059abbc9eae1b192f7af8a46f204a36f4 (patch)
tree5b89c23725af0953f187b20aefb6d2153ed243f2 /include
parentf78cbee0375dcb81b10bac2e0dcd254d0551baa9 (diff)
downloadu-boot-imx-24356fe059abbc9eae1b192f7af8a46f204a36f4.zip
u-boot-imx-24356fe059abbc9eae1b192f7af8a46f204a36f4.tar.gz
u-boot-imx-24356fe059abbc9eae1b192f7af8a46f204a36f4.tar.bz2
MA-7053 when I add selinux=disable in the cmdline, the board do OTA update will fail
The ota update script will set selinux label with set_metadata when do nand ota update. The root cause is set_metadata will fail if disable selinux in recovery mode. This patch is a workaround which will enable selinux in recovery mode, even if have disable selinux in commandline. Signed-off-by: zhang sanshan <b51434@freescale.com>
Diffstat (limited to 'include')
-rw-r--r--include/android_image.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/android_image.h b/include/android_image.h
index 094d60a..07dfd94 100644
--- a/include/android_image.h
+++ b/include/android_image.h
@@ -66,4 +66,7 @@ struct andr_img_hdr {
* 6. if second_size != 0: jump to second_addr
* else: jump to kernel_addr
*/
+
+void del_sub_str(const char *str, const char *sub_str, char *cmdline);
+
#endif