From 7a59c64c449b614b40fd4619bc29808afddfcab6 Mon Sep 17 00:00:00 2001 From: Isaac Chen Date: Sun, 5 Aug 2018 10:45:35 +0200 Subject: wayne-common: Convert into common tree Signed-off-by: Isaac Chen --- setup-makefiles.sh | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) (limited to 'setup-makefiles.sh') diff --git a/setup-makefiles.sh b/setup-makefiles.sh index 49491c9..2c60846 100755 --- a/setup-makefiles.sh +++ b/setup-makefiles.sh @@ -17,7 +17,7 @@ set -e -DEVICE=wayne +DEVICE_COMMON=wayne-common VENDOR=xiaomi INITIAL_COPYRIGHT_YEAR=2018 @@ -35,13 +35,28 @@ if [ ! -f "$HELPER" ]; then fi . "$HELPER" -# Initialize the helper -setup_vendor "$DEVICE" "$VENDOR" "$LINEAGE_ROOT" +# Initialize the common helper +setup_vendor "$DEVICE_COMMON" "$VENDOR" "$LINEAGE_ROOT" true # Copyright headers and guards -write_headers +write_headers "wayne" write_makefiles "$MY_DIR"/proprietary-files.txt true # Finish write_footers + +if [ -s "$MY_DIR"/../$DEVICE/proprietary-files.txt ]; then + # Reinitialize the helper for device + INITIAL_COPYRIGHT_YEAR="$DEVICE_BRINGUP_YEAR" + setup_vendor "$DEVICE" "$VENDOR" "$LINEAGE_ROOT" false + + # Copyright headers and guards + write_headers + + # The standard device blobs + write_makefiles "$MY_DIR"/../$DEVICE/proprietary-files.txt true + + # We are done! + write_footers +fi -- cgit v1.2.3