Add ethaddr targeting to manifest generator
This is required to enable a user to target a
specific device by MAC address. The default
is an empty string, which is essentially a
broadcast targeting all devices.
BUG: 144182574
Test: local build
Change-Id: I8430721de2c51985cbd3d7ec8e5e9513c43a9ed5
diff --git a/tools/make_manifest.sh b/tools/make_manifest.sh
index 35c5a8c..3babc33 100755
--- a/tools/make_manifest.sh
+++ b/tools/make_manifest.sh
@@ -31,7 +31,9 @@
DEFINE_string tftpdir \
"/tftpboot" "TFTP server directory" "d"
DEFINE_string version \
- "1" "Specify which manifest version to use (default: latest)" "v"
+ "2" "Specify which manifest version to use (default: latest)" "v"
+DEFINE_string ethaddr \
+ "" "MAC address of device to DFU (default: all)" "m"
FLAGS_HELP="USAGE: $0 [flags]"
@@ -109,6 +111,7 @@
createManifest
addKVToManifest ManifestVersion ${FLAGS_version}
addKVToManifest TftpServer ${FLAGS_tftp}
+addKVToManifest DFUethaddr ${FLAGS_ethaddr}
addPathToManifest RootfsImg ${FLAGS_rootfs}
addPathToManifest UbootEnv ${FLAGS_env}
addPathToManifest TplSplImg ${FLAGS_loader1}