From 6bebc31a47baf6469e71f2c5bc476a26d4757cda Mon Sep 17 00:00:00 2001
From: Sonali <sonali1@huawei.com>
Date: Thu, 2 May 2019 16:05:21 +0000
Subject: [PATCH] [hikey][build] netboot option not enabled with -m option in
 hikey

currently with "-m" option netsvc.netboot is not getting set to true.
Bootimage for hikey is generated using mkbootimg and uses a separate
cmdline option. Fixed by passing the cmdline option to mkbootimg

TEST: Build zircon and flashed on hikey. Enabled init-ums usb option
./scripts/build-zircon-arm64 && ./scripts/flash-hikey -m
usbctl init-ums

Change-Id: I32e9d357591dbc466749ea316a313cd09b9f5dd0
---
 zircon/scripts/package-image.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/zircon/scripts/package-image.sh b/zircon/scripts/package-image.sh
index 82e2d08e696..b447e8a4a09 100755
--- a/zircon/scripts/package-image.sh
+++ b/zircon/scripts/package-image.sh
@@ -143,6 +143,7 @@ fi
 
 if [[ ${MEXEC} == true ]]; then
     CMDLINE+=" netsvc.netboot=true"
+    MKBOOTIMG_CMDLINE+=" netsvc.netboot=true"
 fi
 
 # Append extra command line items
-- 
GitLab