diff options
Diffstat (limited to 'setup-makefiles.sh')
-rwxr-xr-x | setup-makefiles.sh | 37 |
1 files changed, 26 insertions, 11 deletions
diff --git a/setup-makefiles.sh b/setup-makefiles.sh index 7862003..e527067 100755 --- a/setup-makefiles.sh +++ b/setup-makefiles.sh @@ -1,6 +1,13 @@ #!/bin/sh -# Copyright (C) 2010 The Android Open Source Project +VENDOR=samsung +DEVICE=galaxysmtd +COMMON=aries-common +OUTDIR=vendor/$VENDOR/$DEVICE +OUTCOMMON=vendor/$VENDOR/$COMMON + +(cat << EOF) > ../../../$OUTDIR/$DEVICE-vendor-blobs.mk +# Copyright (C) 2011 The CyanogenMod Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -14,13 +21,22 @@ # See the License for the specific language governing permissions and # limitations under the License. -DEVICE=galaxysmtd -COMMON=aries-common -MANUFACTURER=samsung +# This file is generated by device/$VENDOR/$DEVICE/setup-makefiles.sh -mkdir -p ../../../vendor/$MANUFACTURER/$DEVICE +PRODUCT_COPY_FILES += \\ +EOF -(cat << EOF) | sed s/__DEVICE__/$DEVICE/g | sed s/__MANUFACTURER__/$MANUFACTURER/g | sed s/__COMMON__/$COMMON/g > ../../../vendor/$MANUFACTURER/$DEVICE/$DEVICE-vendor.mk +LINEEND=" \\" +COUNT=`cat proprietary-files.txt | grep -v ^# | grep -v ^$ | wc -l | awk {'print $1'}` +for FILE in `cat proprietary-files.txt | grep -v ^# | grep -v ^$`; do + COUNT=`expr $COUNT - 1` + if [ $COUNT = "0" ]; then + LINEEND="" + fi + echo " $OUTDIR/proprietary/$FILE:system/$FILE$LINEEND" >> ../../../$OUTDIR/$DEVICE-vendor-blobs.mk +done + +(cat << EOF) > ../../../$OUTDIR/$DEVICE-vendor.mk # Copyright (C) 2010 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -48,14 +64,14 @@ PRODUCT_COPY_FILES := \\ packages/wallpapers/LivePicker/android.software.live_wallpaper.xml:/system/etc/permissions/android.software.live_wallpaper.xml # Pick up overlay for features that depend on non-open-source files -DEVICE_PACKAGE_OVERLAYS := vendor/__MANUFACTURER__/aries-common/overlay +DEVICE_PACKAGE_OVERLAYS := vendor/$VENDOR/aries-common/overlay -\$(call inherit-product, vendor/__MANUFACTURER__/__DEVICE__/__DEVICE__-vendor-blobs.mk) -\$(call inherit-product, vendor/__MANUFACTURER__/__COMMON__/aries-vendor-blobs.mk) +\$(call inherit-product, $OUTDIR/$DEVICE-vendor-blobs.mk) +\$(call inherit-product, $OUTCOMMON/aries-vendor-blobs.mk) EOF -(cat << EOF) | sed s/__DEVICE__/$DEVICE/g | sed s/__MANUFACTURER__/$MANUFACTURER/g > ../../../vendor/$MANUFACTURER/$DEVICE/BoardConfigVendor.mk +(cat << EOF) > ../../../$OUTDIR/BoardConfigVendor.mk # Copyright (C) 2010 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -80,6 +96,5 @@ BOARD_USES_LIBSECRIL_STUB := false BOARD_NO_PAGE_FLIPPING := false BOARD_NO_32BPP := false - EOF |