linaro-vendor-pacakge: Rework directory structure to accommodate google repos
This moves things to a
/vendor/linaro/<device>/<version>
path style.
Signed-off-by: John Stultz <john.stultz@linaro.org>
diff --git a/generate_vendor_package.sh b/generate_vendor_package.sh
index 7fbb237..7cad923 100755
--- a/generate_vendor_package.sh
+++ b/generate_vendor_package.sh
@@ -8,15 +8,25 @@
VER=$DATE
SRC_DIR=$SCRIPT_DIR/src/
-TARGET_DIR=out/vendor/linaro-devices/$VER/
+TARGET_DIR=out/vendor/linaro/
-#Create and copy the files into the out dir
-mkdir -p $TARGET_DIR
-cp -r $SRC_DIR/* $TARGET_DIR
+DEV_TARGETS="db845c rb5 linux-firmware"
-# set the version file in the package
-echo "TARGET_LINARO_VENDOR_VERSION := $VER" > $TARGET_DIR/version.mk
+for DEV in $DEV_TARGETS; do
+ DEV_TARGET_DIR=$TARGET_DIR/$DEV/$VER
+
+ #Create and copy the files into the out dir
+ mkdir -p $DEV_TARGET_DIR
+ cp -r $SRC_DIR/$DEV/* $DEV_TARGET_DIR/
+
+ # set the version file in the package
+ echo "TARGET_LINARO_VENDOR_VERSION := $VER" > $DEV_TARGET_DIR/version.mk
+done
+
+# Copy the toplevel items
+cp $SRC_DIR/README $TARGET_DIR/
+cp $SRC_DIR/android-info.txt $TARGET_DIR/
#tar it up
tar -C out -czf out/vendor.tgz vendor/