Skip to content
Open

Khaled #40607

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
261 commits
Select commit Hold shift + click to select a range
86a47e2
Update
Apr 14, 2018
af1d15f
Update
Apr 14, 2018
b64bb9c
fix typo
Apr 14, 2018
27ba045
Update
Apr 14, 2018
2a9b522
fix typo
Apr 15, 2018
fd9d755
Add support MIX2S
ivan19871002 Apr 19, 2018
5ea65f2
Update README.md
liuguo09 Apr 19, 2018
83760f9
Revert "Update README.md"
Apr 19, 2018
159dc83
Update README.md
liuguo09 May 21, 2018
9202382
clean
May 21, 2018
2eb9298
clean
May 21, 2018
bf1daca
Update README.md
liuguo09 May 23, 2018
796cce2
Update README.md
liuguo09 May 23, 2018
4e4f3a7
Update README.md
liuguo09 Jun 4, 2018
04a3502
Update README.md
liuguo09 Jun 4, 2018
90ca819
Update README.md
liuguo09 Jun 20, 2018
a0c4025
add ysl-o-oss to README
xenreon Jul 6, 2018
cdd3028
Merge pull request #913 from xenreon/README
ivan19871002 Jul 9, 2018
c75c66f
Update README.md
liuguo09 Jul 9, 2018
0bf34c2
Update README.md
liuguo09 Jul 9, 2018
81a119f
fix naming
arizaini Jul 15, 2018
fdcb767
Merge pull request #916 from arizaini/README
ivan19871002 Jul 24, 2018
f790901
Update README.md
liuguo09 Aug 17, 2018
8f7ba8e
Update README.md
liuguo09 Aug 17, 2018
beee90c
Update README.md
liuguo09 Aug 27, 2018
c861d19
Update README.md
liuguo09 Aug 28, 2018
35b38e0
Update README.md
liuguo09 Aug 29, 2018
0ed62a0
Update README.md
liuguo09 Aug 29, 2018
cc99319
typo
EnesSastim Aug 30, 2018
4dbc0f3
Merge pull request #940 from EnesSastim/patch-1
ivan19871002 Aug 31, 2018
3bf2f29
Update README.md
liuguo09 Sep 3, 2018
be72273
Update README.md
liuguo09 Nov 23, 2018
a39234f
Update README.md
liuguo09 Nov 28, 2018
d6e56af
Update README.md
liuguo09 Nov 30, 2018
db167fe
Update README.md
liuguo09 Nov 30, 2018
c47e48d
Update README.md
liuguo09 Dec 14, 2018
f3ce866
Update README.md
liuguo09 Dec 18, 2018
3759514
Update README.md
liuguo09 Dec 25, 2018
8f962f5
Update README.md
liuguo09 Dec 25, 2018
60bf3d5
Update README.md
liuguo09 Jan 9, 2019
d02b2c9
Update README.md
liuguo09 Jan 16, 2019
b63c30c
Update README.md
liuguo09 Jan 16, 2019
da7f565
Update README.md
liuguo09 Jan 21, 2019
111a30e
Update README.md
liuguo09 Feb 11, 2019
1e9e734
Update README.md
liuguo09 Feb 22, 2019
ea46b2b
Update README.md
liuguo09 Mar 8, 2019
f6dd33f
Update README.md
liuguo09 Mar 19, 2019
8fa703b
Update README.md
liuguo09 Mar 27, 2019
987288a
Update README.md
liuguo09 Mar 28, 2019
7375c80
Update README.md
liuguo09 Apr 28, 2019
85c389e
Update README.md
liuguo09 May 13, 2019
e3a1e55
Update README.md
liuguo09 Jun 6, 2019
00aea05
Update README.md
liuguo09 Jun 12, 2019
68e8c89
Update README.md
liuguo09 Jun 21, 2019
d75d6bd
Update README.md
liuguo09 Jul 11, 2019
45e5166
Update README.md
liuguo09 Jul 18, 2019
d9093e5
Update README.md
liuguo09 Jul 29, 2019
e54400d
Update README.md
liuguo09 Aug 9, 2019
1045148
Update README.md
liuguo09 Aug 20, 2019
c849cc2
Update README.md
liuguo09 Sep 3, 2019
58c9d3f
README: Fix typo
afr30010 Sep 3, 2019
80af523
Merge pull request #1128 from afr30010/README
ivan19871002 Sep 4, 2019
d43d745
Update README.md
liuguo09 Sep 10, 2019
96c0ca3
Update README.md
liuguo09 Sep 18, 2019
8aaa1ff
Update README.md
XStar-Dev Oct 2, 2019
9273f35
Merge pull request #1138 from XStar-Dev/patch-1
ivan19871002 Oct 9, 2019
279f271
Update README.md
liuguo09 Oct 23, 2019
7064266
README: Fix Mi9 Pro 5G (crux) source code link
thune-xiaobai Oct 24, 2019
23c5105
Merge pull request #1146 from thune-xiaobai/patch-1
ivan19871002 Oct 24, 2019
738bf11
Update README.md
liuguo09 Nov 14, 2019
6862f1f
Update README.md
liuguo09 Dec 1, 2019
e194479
Update README.md
liuguo09 Dec 3, 2019
cc32d33
Update README.md
mi-code Dec 19, 2019
1572798
Update README.md
mi-code Dec 19, 2019
fa83e78
Update README.md
mi-code Dec 20, 2019
7cbb408
Update README.md
mi-code Jan 9, 2020
7c0e113
Update README.md
mi-code Jan 10, 2020
116738e
Update README.md
mi-code Feb 13, 2020
3b25d36
Update README.md
mi-code Feb 19, 2020
6ad0271
Update README.md
mi-code Feb 25, 2020
4f0a659
Update README.md
mi-code Feb 27, 2020
6c8ebc2
Update README.md
mi-code Mar 30, 2020
66f4032
Update README.md
mi-code Apr 17, 2020
d979559
Update README.md
mi-code May 28, 2020
63a4ecc
Update README.md
mi-code Jul 20, 2020
5cdc660
Update README.md
mi-code Aug 11, 2020
e0859f6
Update README.md
mi-code Aug 11, 2020
7b77745
Update README.md
mi-code Aug 11, 2020
2d5d314
Update README.md
mi-code Aug 18, 2020
fb3d368
Update README.md
mi-code Sep 11, 2020
d8594eb
Update README.md
mi-code Sep 29, 2020
51ba042
Update README.md
mi-code Nov 20, 2020
4e29760
Update README.md
mi-code Dec 10, 2020
a70caed
Update README.md
mi-code Dec 18, 2020
28377f7
Update README.md
mi-code Dec 18, 2020
243e272
Update README.md
mi-code Dec 18, 2020
54e5114
Update README.md
mi-code Dec 18, 2020
9c9392b
Update README.md
mi-code Dec 18, 2020
6a7bee2
Update README.md
mi-code Dec 28, 2020
48220ab
Update README.md
mi-code Jan 11, 2021
df5682c
Update README.md
mi-code Jan 18, 2021
a98be6c
Update README.md
mi-code Feb 4, 2021
82623de
Update README.md
mi-code Feb 4, 2021
2619b24
Update README.md
mi-code Feb 7, 2021
b288173
Update README.md
mi-code Feb 7, 2021
b140eba
Update README.md
mi-code Feb 7, 2021
436117b
Update README.md
mi-code Feb 7, 2021
9f97284
Update README.md
mi-code Feb 7, 2021
92749fd
Update README.md
mi-code Feb 7, 2021
b7ccee8
Update README.md
mi-code Feb 8, 2021
d7faafc
Update README.md
mi-code Feb 8, 2021
ada34dc
Update README.md
mi-code Mar 3, 2021
1251eea
Update README.md
mi-code Mar 9, 2021
8aa52cd
Update README.md
mi-code Mar 18, 2021
c51c99b
Update README.md
mi-code Mar 18, 2021
04f22dc
Update README.md
mi-code Mar 22, 2021
e19101f
Update README.md
mi-code Mar 22, 2021
a55f852
Update README.md
mi-code Mar 30, 2021
c1e2690
Update README.md
mi-code Mar 30, 2021
882cd1f
Update README.md
mi-code Apr 8, 2021
d728135
Update README.md
mi-code May 7, 2021
67b09f6
Update README.md
mi-code May 8, 2021
e1e2c7a
Update README.md
mi-code May 26, 2021
8d4aa08
Update README.md
mi-code Jun 3, 2021
c2c506e
Update README.md
mi-code Jun 11, 2021
aa7cff0
Update README.md
mi-code Jun 11, 2021
b8a9bc2
Update README.md
mi-code Jul 13, 2021
c479e2f
Update README.md
mi-code Jul 27, 2021
a3d20ce
Update README.md
mi-code Aug 10, 2021
fa4bb50
Update README.md
mi-code Aug 26, 2021
a48528b
Update README.md
mi-code Aug 26, 2021
93ae496
Update README.md
mi-code Aug 26, 2021
7256355
Update README.md
mi-code Oct 8, 2021
175dd4a
Update README.md
mi-code Oct 29, 2021
bcac94b
Update README.md
mi-code Nov 22, 2021
4572cc4
Update README.md
Dec 28, 2021
e17ca51
Update README.md
mi-code Aug 10, 2022
5c3e2f2
Update README.md
mi-code Aug 11, 2022
941ad08
Update README.md
mi-code Aug 23, 2022
e782401
Update README.md
mi-code Aug 24, 2022
b6a27f6
Update README.md
mi-code Aug 24, 2022
e02db9c
Update README.md
mi-code Aug 26, 2022
516f081
Update README.md
mi-code Oct 12, 2022
b17aafb
Update README.md
mi-code Oct 13, 2022
f485c35
Update README.md
mi-code Oct 13, 2022
04798e3
Update README.md
mi-code Oct 20, 2022
3330298
Update README.md
mi-code Oct 22, 2022
9f0881c
Update README.md
mi-code Nov 2, 2022
397794f
Update README.md
mi-code Jan 11, 2023
7b0916e
Update README.md
mi-code Jan 13, 2023
0c9e243
Update README.md
mi-code Jan 19, 2023
6fe574f
Update README.md
mi-code Feb 7, 2023
185e0be
Update README.md
mi-code Feb 8, 2023
0f1f35c
Update README.md
mi-code Feb 9, 2023
69d6d38
Update README.md
mi-code Feb 24, 2023
1c40429
Update README.md
mi-code Feb 24, 2023
b4bc960
Update README.md
mi-code Feb 27, 2023
c490f23
Update README.md
mi-code Feb 28, 2023
cd2f0e1
Update README.md
mi-code Mar 6, 2023
7a27aed
Update README.md
mi-code Mar 6, 2023
cfe049f
Update README.md
mi-code Apr 7, 2023
46161d0
Update README.md
mi-code May 6, 2023
12b04e8
Update README.md
May 6, 2023
64764a6
Update README.md
mi-code May 6, 2023
6719206
Update README.md
mi-code May 8, 2023
170de1c
Update README.md
mi-code May 11, 2023
f1a92ec
Update README.md
mi-code May 12, 2023
d6274c6
Update README.md
mi-code May 12, 2023
9212ac6
Update README.md
mi-code May 15, 2023
aa07e25
Update README.md
mi-code May 16, 2023
e75326e
Update README.md
mi-code May 19, 2023
2d7f4fc
Update README.md
mi-code May 22, 2023
3d877e1
Update README.md
mi-code May 24, 2023
379aa74
Update README.md
mi-code May 25, 2023
1013b08
Update README.md
mi-code May 26, 2023
b496f1d
Update README.md
mi-code May 29, 2023
fd14c45
Update README.md
mi-code May 30, 2023
c753edb
Update README.md
mi-code May 30, 2023
23c2fc0
Update README.md
mi-code May 30, 2023
e494522
Update README.md
mi-code Jun 1, 2023
25ffee0
Update README.md
mi-code Jun 5, 2023
a031c4d
Update README.md
mi-code Jun 8, 2023
d58d63d
Update README.md
mi-code Jun 12, 2023
c5bf73e
Update README.md
mi-code Jun 15, 2023
9e6967f
Update README.md
mi-code Jun 16, 2023
8438087
Update README.md
mi-code Jun 19, 2023
ce8b03d
Update README.md
mi-code Jun 21, 2023
e361a7e
Update README.md
mi-code Jun 28, 2023
f6a5600
Update README.md
mi-code Jun 29, 2023
edbd191
Update README.md
mi-code Jun 29, 2023
8d6dc99
Update README.md
mi-code Jun 30, 2023
4f8e21e
Update README.md
mi-code Jul 11, 2023
52a4161
Update README.md
mi-code Jul 11, 2023
0862f93
Update README.md
mi-code Jul 12, 2023
9e9ada0
Update README.md
mi-code Jul 13, 2023
46651d9
Update README.md
mi-code Jul 31, 2023
0e29b71
Update README.md
mi-code Aug 21, 2023
5f30d77
Update README.md
mi-code Aug 24, 2023
03a9b88
Update README.md
mi-code Aug 31, 2023
74f9c3a
Update README.md
mi-code Sep 27, 2023
f6f8c88
Update README.md
mi-code Sep 29, 2023
c518e16
Update README.md
mi-code Oct 20, 2023
c5b80b2
Update README.md
mi-code Oct 30, 2023
0e1bf42
Update README.md
mi-code Nov 1, 2023
5477b99
Update README.md
mi-code Nov 3, 2023
67fa168
Update README.md
mi-code Nov 24, 2023
c21891b
Update README.md
mi-code Dec 5, 2023
bb65dc7
Update README.md
mi-code Jan 11, 2024
788a46d
Update README.md
mi-code Jan 11, 2024
e3697a8
Update README.md
mi-code Jan 11, 2024
b43583d
Update README.md
mi-code Jan 17, 2024
e15030c
Update README.md
mi-code Mar 19, 2024
629b1e8
Update README.md
Apr 7, 2024
372ec38
Update README.md
Apr 11, 2024
267bf13
Update README.md
mi-code Apr 28, 2024
f61668b
Update README.md
May 9, 2024
0f65347
Update README.md
Jul 4, 2024
33d2f2d
Update README.md
Jul 4, 2024
5a1f974
Update README.md
Jul 9, 2024
de3a00f
Update README.md
mi-code Aug 31, 2024
c5ebf27
Update README.md
mi-code Aug 31, 2024
a254c2f
Update README.md
mi-code Oct 10, 2024
bffb1da
Update README.md
mi-code Oct 30, 2024
26c249f
Update README.md
mi-code Nov 4, 2024
4508db5
Update README.md
mi-code Dec 11, 2024
3bf21dd
Update README.md
mi-code Dec 17, 2024
2e8e834
Update README.md
mi-code Dec 23, 2024
321b4c7
Update README.md
mi-code Jan 2, 2025
9e75ee8
Update README.md
mi-code Jan 8, 2025
0da3c99
Update README.md
mi-code Jan 8, 2025
2f9dbdf
Update README.md
mi-code Jan 14, 2025
c11ca89
Update README.md
mi-code Jan 24, 2025
3354d1b
Update README.md
mi-code Feb 11, 2025
f6796c6
Update README.md
mi-code Mar 14, 2025
cd7f29e
Update README.md
mi-code Apr 3, 2025
606189c
Update README.md
mi-code Apr 22, 2025
87d0bc6
Update README.md
mi-code Jun 23, 2025
1576331
Update README.md
mi-code Jun 26, 2025
c53f939
Update README.md
mi-code Jun 26, 2025
4101f4b
Update README.md
mi-code Jun 27, 2025
a345f8e
Update README.md
mi-code Aug 11, 2025
17d277d
Update README.md
mi-code Sep 17, 2025
cb05097
Update README.md
mi-code Sep 19, 2025
a542583
Update README.md
mi-code Sep 19, 2025
d829f97
Update README.md
mi-code Sep 19, 2025
db0ba8a
Update README.md
mi-code Oct 22, 2025
7b6ff68
Update README.md
mi-code Jan 7, 2026
bcdca0f
Update README.md
mi-code Jan 14, 2026
dd647e7
Add GitHub Actions workflow for kernel build
khaled2marwa-boop Jan 26, 2026
e7d213e
Merge branch 'MiCode:README' into redmi9a
khaled2marwa-boop Jan 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
185 changes: 185 additions & 0 deletions .GitHub/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,185 @@
name: Defconfig Inspection & Build
on:
workflow_dispatch:

jobs:
inspect_and_build:
runs-on: ubuntu-20.04

steps:
- name: Checkout Source
uses: actions/checkout@v3

- name: Install Legacy Python & Tools
run: |
sudo apt-get update
sudo apt-get install -y \
build-essential \
bc \
libncurses5-dev \
libssl-dev \
flex \
bison \
libelf-dev \
python2 \
git-core \
curl \
rsync
sudo ln -sf /usr/bin/python2 /usr/bin/python

- name: Print Defconfig Content
run: |
echo "===================== DANDELION_DEFCONFIG ANALYSIS ====================="
echo ""
echo "📁 File: arch/arm64/configs/dandelion_defconfig"
echo "📊 Total lines: $(wc -l < arch/arm64/configs/dandelion_defconfig)"
echo ""

# تحليل الـ defconfig
echo "🔍 Key Configurations Found:"
echo "----------------------------"
grep -E "^(CONFIG_WERROR|CONFIG_ARM64|CONFIG_CPU|CONFIG_ARCH|CONFIG_COMPAT|CONFIG_MODULES)" arch/arm64/configs/dandelion_defconfig || true

echo ""
echo "📋 Full Defconfig Content:"
echo "=========================="
cat arch/arm64/configs/dandelion_defconfig

echo ""
echo "⚠️ WARNING Check:"
echo "----------------"
if grep -q "CONFIG_WERROR=y" arch/arm64/configs/dandelion_defconfig; then
echo "❌ CONFIG_WERROR=y found! This will be disabled before build."
else
echo "✅ CONFIG_WERROR not set to 'y'"
fi

- name: Download Toolchains
run: |
echo "📥 Downloading toolchains..."

# 64-bit toolchain (مهم)
if [ ! -d "toolchain-64" ]; then
git clone --depth=1 --branch lineage-19.1 \
https://github.com/LineageOS/android_prebuilts_gcc_linux-x86_aarch64_aarch64-linux-android-4.9 toolchain-64
fi

# 32-bit toolchain (مهم جداً لـ MediaTek)
if [ ! -d "toolchain-32" ]; then
git clone --depth=1 --branch lineage-19.1 \
https://github.com/LineageOS/android_prebuilts_gcc_linux-x86_arm_arm-linux-androideabi-4.9 toolchain-32
fi

echo "✅ Toolchains ready:"
ls -la toolchain-*/bin/* | head -10

- name: Apply Critical Fixes
run: |
echo "🔧 Applying critical source fixes..."

# 1. إصلاح مشكلة yylloc (السبب الرئيسي للفشل)
if [ -f "scripts/dtc/dtc-lexer.lex.c_shipped" ]; then
echo "Fixing yylloc in dtc-lexer.lex.c_shipped..."
sed -i 's/^YYLTYPE yylloc;/extern YYLTYPE yylloc;/' scripts/dtc/dtc-lexer.lex.c_shipped
fi

if [ -f "scripts/dtc/dtc-parser.tab.c_shipped" ]; then
echo "Fixing yylloc in dtc-parser.tab.c_shipped..."
sed -i 's/^YYLTYPE yylloc;/extern YYLTYPE yylloc;/' scripts/dtc/dtc-parser.tab.c_shipped
fi

# 2. تعطيل CONFIG_WERROR في الـ defconfig
if [ -f "arch/arm64/configs/dandelion_defconfig" ]; then
echo "Disabling CONFIG_WERROR..."
sed -i 's/CONFIG_WERROR=y/CONFIG_WERROR=n/' arch/arm64/configs/dandelion_defconfig
fi

# 3. إصلاحات توافق GCC
echo "Applying GCC compatibility fixes..."
find . -name "*.c" -type f -exec grep -l "__attribute__((weak))" {} \; 2>/dev/null | \
head -5 | while read file; do
sed -i 's/static \(.*\) __attribute__((weak));/static \1 __attribute__((weak, unused));/g' "$file" 2>/dev/null || true
done

- name: Configure and Build Kernel
run: |
echo "🚀 Starting kernel build process..."

# إعداد متغيرات البيئة
export ARCH=arm64
export SUBARCH=arm64
export CROSS_COMPILE=$(pwd)/toolchain-64/bin/aarch64-linux-android-
export CROSS_COMPILE_ARM32=$(pwd)/toolchain-32/bin/arm-linux-androideabi-

echo "📊 Build Environment:"
echo " ARCH: $ARCH"
echo " CROSS_COMPILE: $CROSS_COMPILE"
echo " CROSS_COMPILE_ARM32: $CROSS_COMPILE_ARM32"

# 1. تحميل الـ defconfig
echo "📝 Loading defconfig..."
make dandelion_defconfig

# 2. عرض الـ config الناتج
echo "📋 Running config:"
grep -E "^(CONFIG_WERROR|CONFIG_ARM64|CONFIG_CPU|CONFIG_MODULES)" .config || true

# 3. البناء مع flags التوافق
echo "🔨 Building kernel..."
time make -j$(nproc) \
KCFLAGS="-fcommon -w -O2" \
HOSTCFLAGS="-fcommon -w" \
CFLAGS_MODULE="-fno-pic"

# 4. التحقق من الناتج
echo "✅ Build completed. Checking outputs..."
if [ -f "arch/arm64/boot/Image.gz-dtb" ]; then
echo "🎉 SUCCESS: Image.gz-dtb created!"
ls -lh arch/arm64/boot/Image*
else
echo "❌ ERROR: Image.gz-dtb not found!"
echo "Checking for other outputs..."
ls -la arch/arm64/boot/ || true
exit 1
fi

- name: Analyze Build Results
if: always()
run: |
echo "📊 Build Analysis Report"
echo "========================"

# تحليل حجم المخرجات
if [ -f "arch/arm64/boot/Image.gz-dtb" ]; then
echo "📦 Kernel size: $(ls -lh arch/arm64/boot/Image.gz-dtb | awk '{print $5}')"
fi

# تحليل ملف الـ config النهائي
if [ -f ".config" ]; then
echo ""
echo "🔧 Final Config Highlights:"
echo "---------------------------"
grep -E "^(CONFIG_LOCALVERSION|CONFIG_CMDLINE|CONFIG_KERNEL_|CONFIG_MODULES)" .config | head -20 || true
fi

- name: Upload Artifacts
if: success()
uses: actions/upload-artifact@v4
with:
name: kernel-build-artifacts
path: |
.config
arch/arm64/boot/Image.gz-dtb
arch/arm64/boot/Image
Module.symvers
System.map
retention-days: 7

- name: Upload Config Comparison
if: always()
uses: actions/upload-artifact@v4
with:
name: config-comparison
path: |
arch/arm64/configs/dandelion_defconfig
.config
Loading