Przejdź do treści
Biblioteka skilli
Programowanie · Budowanie i kod

qcom-kernel-qcom-next-build

/qcom-kernel-qcom-next-build

Kompiluje jądro qualcomm-linux z gałęzi qcom-next na hoście x86 z konfiguracją arm64, a także generuje Image, DTB i moduły.

Licencja
BSD-3-Clause
Ostatnia zmiana repozytorium
20.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
2
Przestarzałość

Brak sygnałów. Repozytorium zmienione 20.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

BSD-3-Clause, otwarta.

Co robi i kiedy

Kompiluje jądro qualcomm-linux z gałęzi qcom-next na hoście x86 z konfiguracją arm64, a także generuje Image, DTB i moduły.

Wyzwalacze z opisu

build the qcom-next kernelcompile the Qualcomm kernelbuild a kernel with my patch for a qcom boardenable a kernel config for qcom
Oryginalny opis (EN)

Cross-build the qualcomm-linux kernel (qcom-next branch) standalone on an x86 host: arm64 defconfig with the prune.config + qcom.config fragment merge used by meta-qcom's linux-qcom-next recipe, producing Image, DTBs and modules. Use when asked to "build the qcom-next kernel", "compile the Qualcomm kernel", "build a kernel with my patch for a qcom board", or "enable a kernel config for qcom". Do NOT use for building complete images (see qcom-yocto-build-image) or for bumping the kernel SRCREV in meta-qcom recipes.

Jak działa

  1. Prerequisites
  2. 1. Get the source
  3. 2. Configure — defconfig + qcom fragments
  4. 3. Build
  5. 4. Getting it onto a board
  6. Notes
Sekcje z nagłówków SKILL.md, w oryginale · 98 linii, 435 słów
Podgląd SKILL.md
---
name: qcom-kernel-qcom-next-build
description: >-
  Cross-build the qualcomm-linux kernel (qcom-next branch) standalone on an
  x86 host: arm64 defconfig with the prune.config + qcom.config fragment
  merge used by meta-qcom's linux-qcom-next recipe, producing Image, DTBs
  and modules. Use when asked to "build the qcom-next kernel", "compile the
  Qualcomm kernel", "build a kernel with my patch for a qcom board", or
  "enable a kernel config for qcom". Do NOT use for building complete
  images (see qcom-yocto-build-image) or for bumping the kernel SRCREV in
  meta-qcom recipes.
metadata:
  version: "0.1"
---

# Build the qcom-next kernel standalone

Builds the [qualcomm-linux kernel](https://github.com/qualcomm-linux/kernel)
`qcom-next` branch from the command line, using the exact configuration
recipe meta-qcom's `linux-qcom-next` uses — so a standalone developer build
matches what the Yocto image ships.

## Prerequisites

- An aarch64 cross toolchain, e.g. `gcc-aarch64-linux-gnu` (or clang with
  `LLVM=1`).
- Usual kernel build deps: `flex`, `bison`, `libssl-dev`, `libelf-dev`,
  `bc`.

## 1. Get the source

```bash
git clone -b qcom-next https://github.com/qualcomm-linux/kernel.git
cd kernel
```

Notes on the tree:

- `qcom-next` is an integration branch, regularly rebuilt on top of
  mainline `-rc` tags from merged topic branches (see the `qcom-next/`
  bookkeeping directory with `merge.log`). Do not base long-lived work
  directly on it without expecting rebases; check with the maintainers'
  workflow for where to send patches.
- meta-qcom pins a tagged snapshot (`qcom-next-<ver>-<date>` tags) via
  `SRCREV` in `linux-qcom-next_git.bb` — build that tag instead of the
  branch tip when reproducing an image kernel exactly.

## 2. Configure — defconfig + qcom fragments

Mirror the fragment merge from meta-qcom's recipe: `defconfig`, minus the
generic bloat that `prune.config` removes, plus the Qualcomm enablement in
`qcom.config`:

```bash
export ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu-
make defconfig
./scripts/kconfig/merge_config.sh -m -O . .config \
    arch/arm64/configs/prune.config \
    arch/arm64/configs/qcom.config
make olddefconfig
```

Optional additions, matching the recipe's variants:

- **Debug build**: append `kernel/configs/debug.config` and
  `arch/arm64/configs/qcom_debug.config` to the merge list.
- **PREEMPT_RT**: append `arch/arm64/configs/rt.config`.
- **Own changes**: put them in a small fragment file and append it to the
  merge list rather than hand-editing `.config`; that keeps the change
  reviewable and re-appliable.

After merging, verify nothing you asked for was dropped:
`grep CONFIG_<OPTION> .config` (merge_config warns on conflicts — treat
those warnings as errors).

## 3. Build

```bash
make -j"$(nproc)" Image dtbs modules
```

Artifacts:

- Kernel: `arch/arm64/boot/Image`
- Device trees: `arch/arm64/boot/dts/qcom/<board>.dtb` (e.g.
  `qcs6490-rb3gen2.dtb`, `qcs9100-ride-r3.dtb`)
- Modules: `make INSTALL_MOD_PATH=<staging dir> modules_install`

## 4. Getting it onto a board

Two supported routes:

- **Through meta-qcom** (recommended — produces a flashable image): build
  with `ci/linux-qcom-next.yml` and point the recipe at your tree/SRCREV,
  or use the `linux-qcom-next-upstream` devupstream variant which builds
  the tip of `qcom-next`. Then flash with `qcom-flash-qdl` and check with
  `qcom-boot-validate`.
- **Manual swap** of `Image`/DTB into an existing boot flow — board- and
  boot-flow-specific; confirm the target's boot chain (ABL/U-Boot/UEFI)
  before attempting.

## Notes

- 32-bit ARM machines (`qcom-armv7a`) use `qcom_defconfig` directly, with
  no fragment merge.
- `make dtbs W=1` and `make dt_binding_check` are worth running when the
  change touches device trees or bindings — qcom-next follows upstream
  kernel review standards.
- Kernel patches ultimately flow through the upstream linux-arm-msm
  process; qcom-next is an integration tree, not a fork to target with
  GitHub PRs — check the repo's contribution documentation first.

Wersje

W bazie nie ma innych skilli o nazwie qcom-kernel-qcom-next-build.

Migawka bazy z 13.11.2026 · wersja paczki 25f7207639b5 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100qcom-yocto-build-image
    Buduje obraz Qualcomm Linux (Yocto) z meta-qcom przez kas-container, składając konfigurację płytki z nakładkami, i znajduje plik do flashowania.
  • 95qcom-kernel-platform-backport
    Przenosi wsparcie płyt do gałęzi LTS jądra qcom-6.18.y: dobiera poprawki, cherry-picki i weryfikuje brak regresji.
  • 100upload-kernel
    Umieszcza jądro Linuksa na płytce Tang Nano 9K, uruchamiając je z RAM przez UART albo zapisując do flash, z DTB i rootfs.
  • 100yocto-bsp-kernel
    Przegląda i debuguje BSP Yocto, konfigurację MACHINE, jądro, drzewo urządzeń, U-Boot, obrazy FIT oraz brakujące artefakty.
  • 100embedded-linux-patterns
    Opisuje wzorce Linuksa wbudowanego: hierarchię warstw i receptur Yocto, fragmenty konfiguracji jądra, device tree, moduły poza drzewem i testowanie w QEMU.
  • 95qualcomm
    Buduje, testuje i rozwija backend QNN (Qualcomm AI Engine Direct) do eksportu modeli na sprzęt Qualcomm.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.