← embedded-deck
Katalog Gömülü Linux Cross-Compilation 2026

Cross-Compilation
& Toolchain.

Hedef mimari için derleme ortamı kur. crosstool-NG'den CMake toolchain dosyasına — Yocto olmadan cross-compile.

/ · esc
5 rehber
01 Toolchain

crosstool-NG — Custom Toolchain Oluştur

ct-ng menuconfig ile arch, libc ve CPU özelliklerini seç. ARM Cortex-A53 ve RISC-V için tam toolchain derle. Sysroot yapısı, tuple formatı ve Linaro/ARM GNU pre-built alternatifleri.

9 bölüm crosstool-NG · glibc · musl · Linaro
Rehbere git
02 Toolchain

GCC Cross-Compile — Bayraklar & Optimizasyon

--sysroot, -march/-mcpu/-mfpu/-mfloat-abi bayrakları. hard-float vs soft-float. LTO, PIE, ASLR embedded'da. objcopy ile debug/stripped binary ayırma. --gc-sections ile boyut küçültme.

9 bölüm gcc · objcopy · LTO · DWARF
Rehbere git
03 Kütüphane

pkg-config — Cross Ortamda Kütüphane Bulma

PKG_CONFIG_LIBDIR ile native path sızmasını önle. PKG_CONFIG_SYSROOT_DIR ayarı. Wrapper script yaz. libssl ve libcurl için cross .pc dosyası. CMake FIND_PACKAGE entegrasyonu.

8 bölüm pkg-config · libssl · libcurl · CMake
Rehbere git
04 Build Sistemi

CMake — Toolchain Dosyası ile Cross-Compile

toolchain.cmake dosyası: CMAKE_SYSTEM_NAME, CMAKE_SYSROOT, CMAKE_FIND_ROOT_PATH. ExternalProject_Add ile bağımlılık. DESTDIR cross install. ARM Cortex-A53 tam örnek. Hunter/Conan ile bağımlılık yönetimi.

9 bölüm CMake · toolchain.cmake · Hunter · Conan
Rehbere git
05 Build Sistemi

Meson — Cross File ile ARM/RISC-V Derleme

Cross file formatı: machine, binaries, properties, built_in_options. exe_wrapper ile qemu-arm. pkg-config entegrasyonu. Native file vs cross file farkı. musl-libc ile cross. Meson + crosstool-NG combo.

8 bölüm Meson · cross file · qemu · musl
Rehbere git

Aramanla eşleşen rehber bulunamadı.

5
Rehber
~45
Bölüm
0
Harici bağımlılık
Kez çalıştırılabilir