Skip to content

alexsd06/IslaOS

Repository files navigation

mkdir cross cd cross

export PREFIX_OSDEV="$HOME/Documents/OSDev/cross" export TARGET_OSDEV=i686-elf export PATH="$PREFIX_OSDEV/bin:$PATH"

mkdir src cd src/

OSDev -> cross -> src -> (build-binutils, build-gdb, build-gcc, xz archives, extract here)

sudo zypper install makeinfo

sudo zypper install gmp-devel mpfr-devel mpc-devel xorriso mtools

zypper refresh

zypper install qemu

chown alex binutils-2.42.tar.xz chown alex gdb-14.2.tar.xz chown alex gcc-14.1.0.tar.xz

mkdir build-binutils cd build-binutils ../binutils-2.42/configure --target=$TARGET_OSDEV --prefix="$PREFIX_OSDEV" --with-sysroot --disable-nls --disable-werror make -j 12 make install cd ..

mkdir build-gdb cd build-gdb/ ../gdb-14.2/configure --target=$TARGET_OSDEV --prefix="$PREFIX_OSDEV" --disable-werror make all-gdb -j 12 make install-gdb cd ..

which -- $TARGET_OSDEV-as || echo $TARGET_OSDEV-as is not in the PATH

mkdir build-gcc cd build-gcc ../gcc-14.1.0/configure --target=$TARGET_OSDEV --prefix="$PREFIX_OSDEV" --disable-nls --enable-languages=c,c++ --without-headers make all-gcc -j 12 make all-target-libgcc -j 12 make install-gcc make install-target-libgcc cd ..

sudo pacman -S mtools

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published