{"id":26204975,"url":"https://github.com/karthik558/kernel-compile-script","last_synced_at":"2025-10-05T16:53:27.355Z","repository":{"id":53494378,"uuid":"279690551","full_name":"karthik558/Kernel-Compile-Script","owner":"karthik558","description":"This is a collection of scripts aimed at streamlining the process of kernel compilation for improved efficiency and effectiveness.","archived":false,"fork":false,"pushed_at":"2021-12-30T04:41:25.000Z","size":35,"stargazers_count":29,"open_issues_count":1,"forks_count":10,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-05T16:53:25.261Z","etag":null,"topics":["clang-tooling","compile-with-clang","linux-kernel-compile","llvm","scripts-collection","shell-scripting-projects"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/karthik558.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-14T20:51:59.000Z","updated_at":"2025-08-11T21:20:10.000Z","dependencies_parsed_at":"2022-08-19T09:11:14.809Z","dependency_job_id":null,"html_url":"https://github.com/karthik558/Kernel-Compile-Script","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/karthik558/Kernel-Compile-Script","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karthik558%2FKernel-Compile-Script","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karthik558%2FKernel-Compile-Script/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karthik558%2FKernel-Compile-Script/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karthik558%2FKernel-Compile-Script/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/karthik558","download_url":"https://codeload.github.com/karthik558/Kernel-Compile-Script/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karthik558%2FKernel-Compile-Script/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278486278,"owners_count":25994941,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-05T02:00:06.059Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clang-tooling","compile-with-clang","linux-kernel-compile","llvm","scripts-collection","shell-scripting-projects"],"created_at":"2025-03-12T04:32:33.663Z","updated_at":"2025-10-05T16:53:27.337Z","avatar_url":"https://github.com/karthik558.png","language":"Shell","readme":"#Kernel Building Script that i am using.\n\nHOW TO USE THIS SCRIPT\n\n- git clone https://github.com/karthik558/Kernel-Compile-Script Script\n\n- cd Script\n\n- chmod +x \"script\".sh\n\n- ./\"script\".sh\n\n\u003c\u003c\u003c Explaining the script components \u003e\u003e\u003e\n\nexport ARCH=arm64 - Change according to your device \n\nexport SUBARCH=arm64 - Change according to your device \n\nTC_DIR=\"/home/ubuntu/Kernel\" - TC_DIR = Tool chain directory \n\nMPATH=\"$TC_DIR/clang12/bin/:$PATH\" - MPATH = Tool chain bin directory \n\nrm -f out/arch/arm64/boot/Image.gz-dtb - Removing previously compiled kernel Image.gz-dtb \n\nmake O=out vendor/violet-perf_defconfig - Show your deconfig file\n\nPATH=\"$MPATH\" make -j32 O=out \\ - j= no of cores\n\nNM=llvm-nm \\\n    OBJCOPY=llvm-objcopy \\\n    LD=ld.lld \\               - This are kernel need files\n    \nCROSS_COMPILE=aarch64-linux-gnu- \\\n        CROSS_COMPILE_ARM32=arm-linux-gnueabi- \\\n        CC=clang \\            - CC=clang is your compiler use GCC instead of clang according to the toolchain you are using \n        \nAR=llvm-ar \\\n        OBJDUMP=llvm-objdump \\\n        STRIP=llvm-strip      - This are kernel need files\n        \n2\u003e\u00261 | tee error.log  - save logs \n\ncp out/arch/arm64/boot/Image.gz-dtb /home/ubuntu/Kernel/Anykernel - Copying your compiled kernel image zip to Flasher/Anykernel\n\ncd /home/ubuntu/Kernel/Anykernel - Entering to the Flasher script\n\nif [ -f \"Image.gz-dtb\" ]; then\n    zip -r9 Ryzen+-violet-\"$DATE\".zip * -x .git README.md *placeholder  - Change the name of the device and the first name according to your wish\n    \n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarthik558%2Fkernel-compile-script","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkarthik558%2Fkernel-compile-script","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarthik558%2Fkernel-compile-script/lists"}