Skip to content

Commit

Permalink
Unified Source + Adapt workflow with build Script
Browse files Browse the repository at this point in the history
* Imported: LPoS Configs

* Added: configs from all devices

* Updated: Configs

* Removed: Useless configs

* Removed: Useless configs(2)

* Workflow and build script

* remove useless .sh file

* Imported AIK presets for All devices

* Redesigned: Build Script

* Fixes

* Fixes(2)

* Configured workflow

* Fixed a possible chance of duplicated uploads

* AIK: Don't clear the logs!

* Fixed: compiler dirs not set

* Build script Fixes

* Unified DTBO building

* Removed useless workflow step

* Workflow fixes

* fixed: upload issues?

* workflow fixes

* Downloading build artifacts (test)

* Revert "Downloading build artifacts (test)"

This reverts commit 64c0e76.

* I'm fed up now

* Update build.yml

* Lesse
  • Loading branch information
ravindu644 committed Mar 26, 2024
1 parent 462c54a commit e14f793
Show file tree
Hide file tree
Showing 566 changed files with 265,505 additions and 180 deletions.
95 changes: 95 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
name: Build Kernel

on:
push:
workflow_dispatch:
inputs:
tag:
description: 'Release Tag'
required: true

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
device: [S10-5G, S10, S10+, S10e]

steps:
- name: Checkout source
uses: actions/checkout@v4
with:
fetch-depth: 1

- name: Install packages & setup
run: |
sudo apt update -y
sudo apt install libssl-dev libncurses5-dev python2 libtinfo5 -y
git clone --depth=1 https://github.com/ghazzor/proton-12 toolchain
echo "LPOS_KERNEL_VERSION=${{ github.event.inputs.tag }}" >> $GITHUB_ENV
export PATH=$HOME/:$PWD/toolchain/bin:$PATH
- name: Building LPOS ${{ matrix.device }}
run: |
DEVICE=${{ matrix.device }} ./build.sh
- name: Building LPoS + KernelSU
run: |
DEVICE=${{ matrix.device }} ./build.sh -k
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: "LPOS_${{ matrix.device }}"
path: |
out/LPoS*.zip
out/KSU*.zip
upload:
runs-on: ubuntu-latest
needs: build
steps:

- uses: actions/download-artifact@v4
- name: Display structure of downloaded files
run: |
ls -R
mkdir -p out
for folder in "LPOS_S10" "LPOS_S10+" "LPOS_S10-5G" "LPOS_S10e"; do
cd $folder
cp *.zip ../out
cd ..
done
- name: Create release
uses: ncipollo/release-action@v1
with:
tag: ${{ github.event.inputs.tag }}
name: "LPoS Kernel-${{ github.event.inputs.tag }}"
draft: false
prerelease: false
token: ${{ secrets.TOKEN }}
artifacts: |
out/*.zip
body: "Commit SHA: ${{ github.sha }}"

- name: Upload to Telegram
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_CHAT_ID }}
token: ${{ secrets.TELEGRAM_BOT_TOKEN }}
document: |
out/*.zip
format: html
disable_web_page_preview: false
message: |
<b>New Kernel Build found..! 🎉</b>
<b>Device :</b> Universal S10
<b>Kernel Version :</b> ${{ github.event.inputs.tag }}
<b>Repository:</b> <a href="https://github.com/${{ github.repository }}">${{ github.repository }}</a>
<b>Commit SHA:</b> <a href="https://github.com/${{ github.repository }}/commit/${{github.sha}}">Click here</a>
<b>Installation :</b> <a href="https://telegra.ph/LPoS-Kernel-Installation-Guide-02-09">Click here</a>
20 changes: 20 additions & 0 deletions arch/arm64/Kconfig.platforms
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,26 @@ config SOC_EXYNOS9810
select PINCTRL
select SAMSUNG_DMADEV

if SOC_EXYNOS9820

choice
prompt "EXYNOS 9820 DTBO TARGET"

config DTBO_beyondx
bool "S10 5G"

config DTBO_beyond1lte
bool "S10"

config DTBO_beyond2lte
bool "S10+"

config DTBO_beyond0lte
bool "S10e"
endchoice

endif

config SOC_EMULATOR9820
bool "Samsung EMULATOR9820"
select SOC_SAMSUNG
Expand Down
52 changes: 43 additions & 9 deletions arch/arm64/boot/dts/Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,48 @@
# SPDX-License-Identifier: GPL-2.0
dtb-y += exynos/exynos9820.dtb
dtbo-y += samsung/exynos9820-beyondx_kor_08.dtbo
dtbo-y += samsung/exynos9820-beyondx_kor_06.dtbo
dtbo-y += samsung/exynos9820-beyondx_kor_00.dtbo
dtbo-y += samsung/exynos9820-beyondx_kor_03.dtbo
dtbo-y += samsung/exynos9820-beyondx_kor_04.dtbo
dtbo-y += samsung/exynos9820-beyondx_kor_07.dtbo
dtbo-y += samsung/exynos9820-beyondx_kor_01.dtbo
dtbo-y += samsung/exynos9820-beyondx_kor_02.dtbo
dtbo-y += samsung/exynos9820-beyondx_kor_05.dtbo

dtbo-$(CONFIG_DTBO_beyondx) += \
samsung/exynos9820-beyondx_kor_08.dtbo \
samsung/exynos9820-beyondx_kor_06.dtbo \
samsung/exynos9820-beyondx_kor_00.dtbo \
samsung/exynos9820-beyondx_kor_03.dtbo \
samsung/exynos9820-beyondx_kor_04.dtbo \
samsung/exynos9820-beyondx_kor_07.dtbo \
samsung/exynos9820-beyondx_kor_01.dtbo \
samsung/exynos9820-beyondx_kor_02.dtbo \
samsung/exynos9820-beyondx_kor_05.dtbo

dtbo-$(CONFIG_DTBO_beyond1lte) += \
samsung/exynos9820-beyond1lte_eur_open_21.dtbo \
samsung/exynos9820-beyond1lte_eur_open_17.dtbo \
samsung/exynos9820-beyond1lte_eur_open_18.dtbo \
samsung/exynos9820-beyond1lte_eur_open_26.dtbo \
samsung/exynos9820-beyond1lte_eur_open_23.dtbo \
samsung/exynos9820-beyond1lte_eur_open_22.dtbo \
samsung/exynos9820-beyond1lte_eur_open_24.dtbo \
samsung/exynos9820-beyond1lte_eur_open_20.dtbo \
samsung/exynos9820-beyond1lte_eur_open_19.dtbo

dtbo-$(CONFIG_DTBO_beyond2lte) += \
samsung/exynos9820-beyond2lte_eur_open_25.dtbo \
samsung/exynos9820-beyond2lte_eur_open_16.dtbo \
samsung/exynos9820-beyond2lte_eur_open_04.dtbo \
samsung/exynos9820-beyond2lte_eur_open_18.dtbo \
samsung/exynos9820-beyond2lte_eur_open_17.dtbo \
samsung/exynos9820-beyond2lte_eur_open_26.dtbo \
samsung/exynos9820-beyond2lte_eur_open_20.dtbo \
samsung/exynos9820-beyond2lte_eur_open_23.dtbo \
samsung/exynos9820-beyond2lte_eur_open_19.dtbo \
samsung/exynos9820-beyond2lte_eur_open_24.dtbo

dtbo-$(CONFIG_DTBO_beyond0lte) += \
samsung/exynos9820-beyond0lte_eur_open_25.dtbo \
samsung/exynos9820-beyond0lte_eur_open_18.dtbo \
samsung/exynos9820-beyond0lte_eur_open_24.dtbo \
samsung/exynos9820-beyond0lte_eur_open_17.dtbo \
samsung/exynos9820-beyond0lte_eur_open_19.dtbo \
samsung/exynos9820-beyond0lte_eur_open_20.dtbo \
samsung/exynos9820-beyond0lte_eur_open_22.dtbo

targets += dtbs
DTB_LIST := $(dtb-y) $(dtbo-y)
Expand Down
Loading

0 comments on commit e14f793

Please sign in to comment.