forked from AsteroidOS/meta-smartwatch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mtk6580: linux-harmony: Don't add custom firmware directories, now ha…
…ndled by firmwared
- Loading branch information
1 parent
342f867
commit d36ea92
Showing
3 changed files
with
48 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/system/ directory build instructions | ||
===================================== | ||
|
||
The /system/ directory available on the mooneye platform and provided in | ||
prebuilt form by android_mooneye-lp.bb is a tricky mix of an original WearOS | ||
/system and some recompiled parts. This is due to the half-closed nature of | ||
Android Wear. This file explains you how to rebuild manually your own /system | ||
dir. | ||
|
||
We first need to adb pull a /system directory from a living WearOS 8.0.0 | ||
installation and then modify it with some symlinks: | ||
adb pull /system/ system | ||
cd system/ | ||
rm -rf app/ fake-libs fonts/ framework/ media/ priv-app/ | ||
|
||
This installation wouldn't be enough because libhybris needs a patched bionic. | ||
Thankfully, this part is open-source so we can download and recompile it. (This | ||
may take a while) | ||
### Download | ||
curl https://storage.googleapis.com/git-repo-downloads/repo > repo | ||
chmod a+x repo | ||
mkdir -p android-o/ | ||
cd android-o | ||
../repo init -u https://github.com/AsteroidOS/android_manifest -b android-wear-8.0.0_r1 | ||
../repo sync | ||
|
||
### Build (can only be done in bash) | ||
. build/envsetup.sh | ||
mmma bionic | ||
|
||
### Installation | ||
cp out/target/product/generic/root/init ../system/bin/ | ||
cp -r out/target/product/generic/system/* ../system/ | ||
chmod +x ../system/bin/* | ||
|
||
libhybris headers | ||
================= | ||
|
||
The second part of this tarball contains header files to compile against | ||
libhybris. There is a script in the libhybris distribution that can pull | ||
the header files from the downloaded android distribution (above). | ||
|
||
git clone https://github.com/libhybris/libhybris | ||
./libhybris/utils/extract_headers.sh android-dory include | ||
|
||
With the system and include directories, you can create the system-dir tarball: | ||
|
||
tar zcvf system.tar.gz system include |
26 changes: 0 additions & 26 deletions
26
...ernel/linux/linux-harmony/0013-firmware_class-Load-firmwares-from-Android-directori.patch
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters