Building toolchain specific linux platform

  Рет қаралды 942

Nandu

Nandu

Күн бұрын

Environment variables
export TARGET=aarch64-unknown-linux-gnu
export PREFIX="/home/Nandu/sysroot/usr"
export sysroot="/home/Nandu/sysroot"
export PATH="/home/Nandu/sysroot/usr/bin:$PATH"
configure binutils
../configure --prefix=$sysroot/usr --with-sysroot=$sysroot --with-lib-path=$sysroot/usr/lib --target=$TARGET --disable-nls --disable-werror
configure gcc
../configure --target=$TARGET --prefix=$sysroot/usr --with-glibc-version=2.27 --with-sysroot=$sysroot --with-newlib --without-headers
--with-local-prefix=/usr --with-native-system-header-dir=/usr/include --disable-nls --disable-shared --disable-multilib --disable-decimal-float --disable-threads --disable-libatomic --disable-libgomp --disable-libquadmath
--disable-libssp --disable-libvtv --disable-libstdcxx --enable-languages=c,c++
configure linux
make headers_install CROSS_COMPILE=$TARGET INSTALL_HDR_PATH=$sysroot/usr ARCH=arm64
configure glibc
BUILD_CC=gcc CC=$sysroot/usr/bin/aarch64-unknown-linux-gnu-gcc AR=$sysroot/usr/bin/aarch64-unknown-linux-gnu-ar RANLIB=$sysroot/usr/bin/aarch64-unknown-linux-gnu-ranlib ../configure --prefix=/usr --host=aarch64-unknown-linux-gnu --build=x86_64-pc-linux-gnu --enable-kernel=4.19 --with-headers=$sysroot/usr/include

Пікірлер: 1
@vaddisreehari
@vaddisreehari 2 жыл бұрын
Hi Nandu, Thank you for this video. could you please tell me if possible cross-compiling for HP-UX on Linux required libs downloads
Anatomy of Cross-Compilation Toolchains
58:43
The Linux Foundation
Рет қаралды 30 М.
18 Commands That Will Change The Way You Use Linux Forever
29:50
Akamai Developer
Рет қаралды 1,2 МЛН
Inside Out 2: BABY JOY VS SHIN SONIC 3
00:19
AnythingAlexia
Рет қаралды 8 МЛН
iPhone or Chocolate??
00:16
Hungry FAM
Рет қаралды 35 МЛН
Новый уровень твоей сосиски
00:33
Кушать Хочу
Рет қаралды 4,7 МЛН
2023 LLVM Dev Mtg - Understanding the LLVM build
47:05
LLVM
Рет қаралды 1,1 М.
Static and Dynamic Linking on Linux with gcc
27:09
embeddedarmdev
Рет қаралды 46 М.
Linux New User Guide: 10 Things I Wish I Knew
23:31
Learn Linux TV
Рет қаралды 461 М.
Making Minimal Linux Distro with Buildroot
8:38
Nir Lichtman
Рет қаралды 30 М.
Cross compiling for arm or aarch64 on Debian or Ubuntu
12:03
jensd_be
Рет қаралды 46 М.
Setting up an OS dev environment, building GCC toolchain
28:14
What If The Universe DID NOT Start With The Big Bang?
18:24
PBS Space Time
Рет қаралды 30 М.
Fedora vs Debian and Arch Linux
17:32
Chris Titus Tech
Рет қаралды 519 М.
Linux from Scratch
2:35:42
Titus Tech Talk
Рет қаралды 179 М.
Inside Out 2: BABY JOY VS SHIN SONIC 3
00:19
AnythingAlexia
Рет қаралды 8 МЛН