-
Notifications
You must be signed in to change notification settings - Fork 356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Samsung Grand Prime (SM-G530M) STABLE 🗡️ #308
Closed
Closed
Changes from all commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
ddea3ac
Update msm8916-samsung-r11.dts
pachof bf4caf7
Update build.yml
pachof a22c420
Update build.yml
pachof d4ad9ec
Update build.yml
pachof 91f57d2
Update build.yml
pachof 66b19e8
Update build.yml
pachof aee30f9
Update build.yml
pachof 24266bc
Update build.yml
pachof 478e91d
Update build.yml
pachof df77a77
Update lk2nd.yml
pachof fbb16a4
Update build.yml
pachof 6383c0a
Update build.yml
pachof 92859bc
Update build.yml
pachof a516338
Update build.yml
pachof 4fd5b02
Update build.yml
pachof 6877746
Merge branch 'msm8916-mainline:master' into master
pachof 6adf4c5
Update build.yml
pachof 5e6df3a
Update lk2nd.yml
pachof b6f5972
Update dts/msm8916/msm8916-samsung-r11.dts
pachof f4998d9
Delete .github/workflows/lk2nd.yml
pachof ae48540
Merge branch 'msm8916-mainline:master' into master
pachof 876d542
Create lk2nd.yml
pachof fc22fda
Update lk2nd.yml
pachof 48ce0ad
Update lk2nd.yml
pachof 00c20ae
Update lk2nd.yml
pachof 55b76a3
Update lk2nd.yml
pachof 3db86e8
Update lk2nd.yml
pachof 8b77346
Update lk2nd.yml
pachof 780b293
Update lk2nd.yml
pachof d6d4063
Update lk2nd.yml
pachof d9aa8de
Update lk2nd.yml
pachof 4c7c9a2
Update lk2nd.yml
pachof 345ffd5
Update lk2nd.yml
pachof 3f81da5
Update lk2nd.yml
pachof cf499ce
Update lk2nd.yml
pachof 18386ae
Update build.yml
pachof 86acf35
Update lk2nd.yml
pachof b0ccb5f
Create lk2nd-matrix.yml
pachof e6a38a5
Create stock.yml
pachof 85a6faf
Create stock-matrix.yml
pachof db1bca4
Update build.yml
pachof 73bf1bf
Update lk2nd.yml
pachof File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
@@ -1,20 +1,37 @@ | ||
name: build | ||
on: | ||
workflow_call: | ||
inputs: | ||
project: | ||
required: true | ||
type: string | ||
vars: | ||
type: string | ||
name: Building | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Install the build dependencies | ||
run: | | ||
sudo apt-get install -yqq gcc gcc-arm-none-eabi device-tree-compiler libfdt-dev make python3 | ||
- name: Build ${{ inputs.project }} | ||
run: make -j$(nproc) TOOLCHAIN_PREFIX=arm-none-eabi- ${{ inputs.vars }} ${{ inputs.project }} | ||
# Build lk2nd-msm8916 separately first to avoid booting lots of runners | ||
# for obvious build errors that affect all platforms | ||
lk2nd-msm8916: | ||
name: lk2nd | ||
uses: ./.github/workflows/lk2nd.yml | ||
with: | ||
project: lk2nd | ||
platform: msm8916 | ||
artifacts: | | ||
build-*/lk.bin | ||
build-*/lk2nd.img | ||
lk2nd: | ||
needs: lk2nd-msm8916 | ||
uses: ./.github/workflows/lk2nd-matrix.yml | ||
with: | ||
project: lk2nd | ||
exclude: msm8916 # Already built separately above | ||
artifacts: | | ||
build-*/lk.bin | ||
build-*/lk2nd.img | ||
|
||
lk1st: | ||
needs: lk2nd | ||
uses: ./.github/workflows/lk2nd-matrix.yml | ||
with: | ||
project: lk1st | ||
artifacts: | | ||
build-*/*.mbn | ||
build-*/lk.bin | ||
|
||
stock: | ||
needs: lk1st | ||
uses: ./.github/workflows/stock-matrix.yml |
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,41 @@ | ||
name: Build lk2nd matrix | ||
on: | ||
workflow_call: | ||
inputs: | ||
project: | ||
type: string | ||
required: true | ||
artifacts: | ||
type: string | ||
required: true | ||
exclude: | ||
type: string | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: | ||
- apq8084 | ||
- mdm9607 | ||
- mdm9640 | ||
- msm8226 | ||
- msm8610 | ||
- msm8660 | ||
- msm8909 | ||
- msm8916 | ||
- msm8952 | ||
- msm8953 | ||
- msm8960 | ||
- msm8974 | ||
- msm8994 | ||
- msm8996 | ||
exclude: | ||
- platform: ${{ inputs.exclude }} | ||
|
||
uses: ./.github/workflows/lk2nd.yml | ||
with: | ||
project: ${{ inputs.project }} | ||
platform: ${{ matrix.platform }} | ||
artifacts: ${{ inputs.artifacts }} |
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 |
---|---|---|
@@ -1,42 +1,39 @@ | ||
name: lk2nd | ||
on: [push, pull_request] | ||
jobs: | ||
lk2nd-msm8916: | ||
uses: ./.github/workflows/build.yml | ||
with: | ||
project: lk2nd-msm8916 | ||
|
||
lk2nd: | ||
needs: lk2nd-msm8916 | ||
strategy: | ||
matrix: | ||
project: [lk2nd-msm8226, lk2nd-msm8974] | ||
uses: ./.github/workflows/build.yml | ||
with: | ||
project: ${{ matrix.project }} | ||
|
||
lk1st: | ||
needs: lk2nd-msm8916 | ||
strategy: | ||
matrix: | ||
project: [lk1st-msm8916] | ||
uses: ./.github/workflows/build.yml | ||
with: | ||
project: ${{ matrix.project }} | ||
|
||
lk1st-msm8916-db410c: | ||
needs: lk2nd-msm8916 | ||
uses: ./.github/workflows/build.yml | ||
with: | ||
project: lk1st-msm8916 | ||
vars: FORCE_SDCARD=1 LK1ST_DTB=apq8016-sbc LK1ST_PANEL=adv7533_1080p_video | ||
|
||
caf: | ||
needs: lk2nd-msm8916 | ||
strategy: | ||
matrix: | ||
project: [msm8916, msm8974, msm8226] | ||
uses: ./.github/workflows/build.yml | ||
with: | ||
project: ${{ matrix.project }} | ||
name: Build lk2nd | ||
on: | ||
workflow_call: | ||
inputs: | ||
project: | ||
type: string | ||
required: true | ||
platform: | ||
type: string | ||
required: true | ||
options: | ||
type: string | ||
artifacts: | ||
type: string | ||
required: true | ||
|
||
jobs: | ||
build: | ||
name: ${{ inputs.platform }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Install dtc for lk2nd (not needed for lk1st without device tree) | ||
- name: Install additional build dependencies | ||
run: sudo apt-get install -yqq device-tree-compiler libfdt-dev | ||
if: inputs.project == 'lk2nd' | ||
- name: Install cross compiler | ||
uses: carlosperate/arm-none-eabi-gcc-action@v1 | ||
- run: arm-none-eabi-gcc --version | ||
- uses: actions/checkout@v3 | ||
- name: Build | ||
run: git clean -dxf && make -j$(nproc) TOOLCHAIN_PREFIX=arm-none-eabi- | ||
${{ inputs.options }} ${{ inputs.project }}-${{ inputs.platform }} | ||
- name: Archive artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ${{ inputs.platform }} | ||
path: ${{ inputs.artifacts }} | ||
env: | ||
LKLE_CFLAGS: -Werror |
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,35 @@ | ||
name: Build stock matrix | ||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: | ||
- apq8084 | ||
- mdm9607 | ||
- mdm9640 | ||
- msm8226 | ||
- msm8610 | ||
- msm8660 | ||
- msm8909 | ||
- msm8916 | ||
- msm8952 | ||
- msm8953 | ||
- msm8960 | ||
- msm8974 | ||
- msm8994 | ||
- msm8996 | ||
include: | ||
# No display support on msm8660/msm8960 (with mdp4) | ||
- platform: msm8660 | ||
options: EMMC_BOOT=1 ENABLE_DISPLAY=0 | ||
- platform: msm8960 | ||
options: EMMC_BOOT=1 ENABLE_DISPLAY=0 | ||
|
||
uses: ./.github/workflows/stock.yml | ||
with: | ||
platform: ${{ matrix.platform }} | ||
options: ${{ matrix.options }} |
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,52 @@ | ||
name: Build stock | ||
on: | ||
workflow_call: | ||
inputs: | ||
platform: | ||
type: string | ||
required: true | ||
options: | ||
type: string | ||
|
||
jobs: | ||
build: | ||
name: ${{ inputs.platform }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install cross compiler | ||
uses: carlosperate/arm-none-eabi-gcc-action@v1 | ||
with: | ||
# Qualcomm recommends building with really old GCC versions :/ | ||
release: 4.8-2014-q3 | ||
- run: arm-none-eabi-gcc --version | ||
- uses: actions/checkout@v3 | ||
- name: Build (default) | ||
run: git clean -dxf && make -j$(nproc) TOOLCHAIN_PREFIX=arm-none-eabi- | ||
${{ inputs.options }} ${{ inputs.platform }} | ||
- name: Build (signed kernel) | ||
run: git clean -dxf && make -j$(nproc) TOOLCHAIN_PREFIX=arm-none-eabi- | ||
${{ inputs.options }} ${{ inputs.platform }} | ||
USER_BUILD_VARIANT=true SIGNED_KERNEL=1 | ||
- name: Build (verified boot v1) | ||
run: git clean -dxf && make -j$(nproc) TOOLCHAIN_PREFIX=arm-none-eabi- | ||
${{ inputs.options }} ${{ inputs.platform }} | ||
USER_BUILD_VARIANT=true VERIFIED_BOOT=1 | ||
# Only some platforms support verified boot v1 | ||
if: contains(fromJSON('["msm8909", "msm8952", "msm8953", "msm8994", "msm8996"]'), inputs.platform) | ||
- name: Build (verified boot v2) | ||
run: git clean -dxf && make -j$(nproc) TOOLCHAIN_PREFIX=arm-none-eabi- | ||
${{ inputs.options }} ${{ inputs.platform }} | ||
USER_BUILD_VARIANT=true | ||
VERIFIED_BOOT_2=1 OSVERSION_IN_BOOTIMAGE=1 ENABLE_VB_ATTEST=1 VB1_KEY_USED=1 | ||
TARGET_USE_SYSTEM_AS_ROOT_IMAGE=1 ENABLE_KASLRSEED=1 ENABLE_BOOTDEVICE_MOUNT=1 | ||
# ... and even less support verified boot v2 | ||
if: contains(fromJSON('["msm8909", "msm8952", "msm8953", "msm8996"]'), inputs.platform) | ||
- name: Build (dynamic partitions) | ||
run: git clean -dxf && make -j$(nproc) TOOLCHAIN_PREFIX=arm-none-eabi- | ||
${{ inputs.options }} ${{ inputs.platform }} | ||
USER_BUILD_VARIANT=true DYNAMIC_PARTITION_SUPPORT=1 VIRTUAL_AB_OTA=1 | ||
VERIFIED_BOOT_2=1 OSVERSION_IN_BOOTIMAGE=1 ENABLE_VB_ATTEST=1 VB1_KEY_USED=1 | ||
TARGET_USE_SYSTEM_AS_ROOT_IMAGE=1 ENABLE_KASLRSEED=1 ENABLE_BOOTDEVICE_MOUNT=1 | ||
if: contains(fromJSON('["msm8909", "msm8952", "msm8953", "msm8996"]'), inputs.platform) | ||
env: | ||
LKLE_CFLAGS: -Werror |
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do these changes have anything to do with
Add Samsung Grand Prime (SM-G530M)
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, I wanted to modify my repository so that the artifacts can be downloaded, I didn't know that it would be reflected, how do I prevent these changes from occurring?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For online helps, please feel free to come back to #msm8916:postmarketos.org .
Maybe you can push it to another branch, with
git switch -c <new_branch>
andgit push <your_repo> [new_branch]
. Uppercase-C
to overwrite, if necessary.For this PR, you can also try to create another branch
fortunalteub
with:git checkout origin/master
to checkout toorigin/master
git switch -c fortunalteub
to switch and create branchfortunalteub
git cherry-pick ddea3ace6cf69768627ea19506398254d52ab9d6 b6f59726c60a9bca5365d26ac1b309d0b39b1d28
to cherry-pick 2 relevant commitsgit rebase -i origin/master
to rebasegit push <your_repo>
, and open another clean PR.git push <your_repo> fortunalteub:master
to replace your current branchmaster
in this PR