-
Notifications
You must be signed in to change notification settings - Fork 212
Description
Hey,
I'm having issues running the setup script to create the file $DEVICE-vendor-blobs.mk
I am using a device which has a device specific repo and a common repo.
Running the setup script results in the creation of a proper $DEVICE-vendor-blobs.mk which is immediately overwritten by a broken version of that file. (I could observe this by using >> instead of >)
The problematic piece of code seems to be in lines 104-123:
While VENDOR and DEVICE are exported (104, 105), the directory is changed to $DEVICE_COMMON_TREE (113). This causes the setup-makefiles.sh script from the repo (Asus Z00A) to create a file with the appropriate content for $DEVICE_COMMON_TREE, but the files goes erroneously to vendor/$VENDOR/$DEVICE (instead of the common vendor directory).
This eventually leads to the build failing. I can fix it by commenting out line 121.
Lines 104 to 123 in 57d7390
| export VENDOR | |
| export DEVICE | |
| DEVICE_COMMON_HOLDER=$DEVICE_COMMON | |
| export DEVICE_COMMON=${DEVICE_COMMON:=$k} | |
| PLATFORM_COMMON_HOLDER=$PLATFORM_COMMON | |
| export PLATFORM_COMMON=${PLATFORM_COMMON:=$DEVICE_COMMON} | |
| if [ -f $DEVICE_COMMON_TREE/setup-makefiles.sh ]; then | |
| ( | |
| cd $DEVICE_COMMON_TREE | |
| for l in $(find . -name "*proprietary-*.txt"); do | |
| echo "I: Processing proprietary blob file: device/$VENDOR/$k/$l" | |
| grep -r -v -E '(^.*\.{1}(jar|apk)[|]?.*)' $l >$l".tmp" && mv $l".tmp" $l | |
| done | |
| # Set executable bit, needed for some device trees | |
| chmod +x ./setup-makefiles.sh | |
| # Actually run the script | |
| ./setup-makefiles.sh | |
| ) | |
| fi |
Is this a compatibility issue between the halium setup script and the repo's script, or did I miss something out?