summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xextract-files.sh7
-rwxr-xr-xsetup-makefiles.sh15
2 files changed, 22 insertions, 0 deletions
diff --git a/extract-files.sh b/extract-files.sh
index 1536608..88517a6 100755
--- a/extract-files.sh
+++ b/extract-files.sh
@@ -79,6 +79,13 @@ setup_vendor "$DEVICE_COMMON" "$VENDOR" "$LINEAGE_ROOT" true $CLEAN_VENDOR
extract "$MY_DIR"/proprietary-files.txt "$SRC" \
"${KANG}" --section "${SECTION}"
+if [ -s "$MY_DIR"/../$DEVICE_SPECIFIED_COMMON/proprietary-files.txt ];then
+ # Reinitialize the helper for device specified common
+ setup_vendor "$DEVICE_SPECIFIED_COMMON" "$VENDOR" "$LINEAGE_ROOT" false "$CLEAN_VENDOR"
+ extract "$MY_DIR"/../$DEVICE_SPECIFIED_COMMON/proprietary-files.txt "$SRC" \
+ "${KANG}" --section "${SECTION}"
+fi
+
if [ -s "$MY_DIR"/../$DEVICE/proprietary-files.txt ]; then
# Reinitialize the helper for device
setup_vendor "$DEVICE" "$VENDOR" "$LINEAGE_ROOT" false "$CLEAN_VENDOR"
diff --git a/setup-makefiles.sh b/setup-makefiles.sh
index 34f8d52..f8cf02d 100755
--- a/setup-makefiles.sh
+++ b/setup-makefiles.sh
@@ -46,6 +46,21 @@ write_makefiles "$MY_DIR"/proprietary-files.txt true
# Finish
write_footers
+if [ -s "$MY_DIR"/../$DEVICE_SPECIFIED_COMMON/proprietary-files.txt ]; then
+ # Reinitialize the helper for device specified common
+ INITIAL_COPYRIGHT_YEAR="$DEVICE_BRINGUP_YEAR"
+ setup_vendor "$DEVICE_SPECIFIED_COMMON" "$VENDOR" "$LINEAGE_ROOT" true
+
+ # Copyright headers and guards
+ write_headers "$DEVICE_SPECIFIED_COMMON_DEVICE"
+
+ # The standard device specified common blobs
+ write_makefiles "$MY_DIR"/../$DEVICE_SPECIFIED_COMMON/proprietary-files.txt true
+
+ # We are done!
+ write_footers
+fi
+
if [ -s "$MY_DIR"/../$DEVICE/proprietary-files.txt ]; then
# Reinitialize the helper for device
INITIAL_COPYRIGHT_YEAR="$DEVICE_BRINGUP_YEAR"