Skip to content
Snippets Groups Projects

xiaomi-ferrari: new device

Merged Imported Administrator requested to merge ferrari into master
Add new device Mi 4i codename:ferrari
Edited by Administrator

Merge request reports

Merged by avatar (Mar 29, 2025 2:54pm UTC)

Loading

Pipeline #195109 passed

Pipeline passed for daa2ea29 on master

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Administrator
  • Administrator
  • Administrator
  • Administrator
  • Administrator
  • Administrator
  • Administrator added category::device + 1 deleted label · Imported

    added category::device + 1 deleted label

  • Administrator added 1 commit · Imported

    added 1 commit

    Compare with previous version

    By Suraaj Vashisht on 2020-05-04T08:09:28

  • Author Owner

    Please create a new wiki page for your device on wiki.postmarketos.org and fill the checklist.

    For things that does not work yet, please left them blank.

    By Danct12 on 2020-05-04T08:37:12

  • Administrator added 1 commit · Imported

    added 1 commit

    Compare with previous version

    By Suraaj Vashisht on 2020-05-04T13:22:38

  • Administrator resolved all threads · Imported

    resolved all threads

    By Martijn Braam on 2020-05-27T15:01:47

  • Administrator added 93 commits · Imported

    added 93 commits

    Compare with previous version

    By Suraaj Vashisht on 2020-05-28T13:39:43

  • Administrator added 1 commit · Imported

    added 1 commit

    Compare with previous version

    By Suraaj Vashisht on 2020-05-28T13:42:12

  • Administrator added 1 commit · Imported

    added 1 commit

    Compare with previous version

    By Suraaj Vashisht on 2020-05-28T13:46:21

  • Administrator resolved all threads · Imported

    resolved all threads

    By Suraaj Vashisht on 2020-05-28T13:58:54

  • Author Owner

    I've done a few changes to finish this up:

    • rebased on master
    • squashed commits
    • added pmb:cross-native option to the linux APKBUILD, as it is required now (and IIRC we do have a check for it, after rebasing on master).
    • added a description line to the patch to make the APKBUILD linting happy
    • added linux-headers dependency, so it build with pmbootstrap build --strict

    This merge request has been open since one month, has seen quite some reviewing and everything was resolved. It looks good to me as well. So I'll merge it with just one approval (instead of usual two), once it builds.

    Thank you for the device port, @SUNGOLDSV!

    For reference, my changes:

    diff --git a/device/testing/linux-xiaomi-ferrari/01_prima_gcc6.patch b/device/testing/linux-xiaomi-ferrari/01_prima_gcc6.patch
    index 0550bb31..20c64c3e 100644
    --- a/device/testing/linux-xiaomi-ferrari/01_prima_gcc6.patch
    +++ b/device/testing/linux-xiaomi-ferrari/01_prima_gcc6.patch
    @@ -1,3 +1,5 @@
    +Fix compilation with GCC-6
    +
     diff --git a/drivers/staging/prima/CORE/VOSS/src/wlan_nv_template_builtin.c b/drivers/staging/prima/CORE/VOSS/src/wlan_nv_template_builtin.c
     index 14c6eadf524..e26b697f793 100644
     --- a/drivers/staging/prima/CORE/VOSS/src/wlan_nv_template_builtin.c
    diff --git a/device/testing/linux-xiaomi-ferrari/APKBUILD b/device/testing/linux-xiaomi-ferrari/APKBUILD
    index 63a850e8..be7da679 100644
    --- a/device/testing/linux-xiaomi-ferrari/APKBUILD
    +++ b/device/testing/linux-xiaomi-ferrari/APKBUILD
    @@ -10,8 +10,8 @@ _carch="arm64"
     _flavor="xiaomi-ferrari"
     url="https://kernel.org"
     license="GPL-2.0-only"
    -options="!strip !check !tracedeps"
    -makedepends="bash bc bison devicepkg-dev flex openssl-dev perl dtbtool gcc6"
    +options="!strip !check !tracedeps pmb:cross-native"
    +makedepends="bash bc bison devicepkg-dev flex openssl-dev perl dtbtool gcc6 linux-headers"
     # Compiler: GCC 6 (doesn't boot when compiled with newer versions)
     if [ "${CC:0:5}" != "gcc6-" ]; then
     	CC="gcc6-$CC"
    @@ -55,4 +55,4 @@ sha512sums="2cd2854045eaada791e912612ce609ca4cb5d7082a5019fc86effa92db3fe4a1df8b
     1a7c0a9d56541d7d22e05914d6bbc8a6c06fca596c5aa700d2e83408510a5aa4b65da2312fa1c85f4101264d845fefa6c72943b3b498b970d4b4d8d72b9e2ad1  config-xiaomi-ferrari.aarch64
     77eba606a71eafb36c32e9c5fe5e77f5e4746caac292440d9fb720763d766074a964db1c12bc76fe583c5d1a5c864219c59941f5e53adad182dbc70bf2bc14a7  gcc7-give-up-on-ilog2-const-optimizations.patch
     197d40a214ada87fcb2dfc0ae4911704b9a93354b75179cd6b4aadbb627a37ec262cf516921c84a8b1806809b70a7b440cdc8310a4a55fca5d2c0baa988e3967  gcc8-fix-put-user.patch
    -184875cf13a180d1c4bbe27d8ad24a8d6bd2e36ec35f9c4326809f1c8938ecebf3844c36ef71f4a0af9077e2506a82b2b4383ffd020dd1918aba1689d77b0c01  01_prima_gcc6.patch"
    +a246e10cd979a7f5defb3a97049448b70cff892d667e41f998431ddbeb0e19a84687296b2456e807dd48090823bec63a340f07f3b4ba32121113914e41d299da  01_prima_gcc6.patch"

    By Oliver Smith on 2020-06-05T11:52:10

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading