Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
packages [2015/06/22 04:11] – Add gcc 4.9.2 specs file link, update package to 4.9.2-3 to align with inclusion of specs file snacsnoc | packages [2023/11/18 17:16] – [Non-native] snacsnoc | ||
---|---|---|---|
Line 3: | Line 3: | ||
Update the packages list by running | Update the packages list by running | ||
- | fbpkg update | + | |
Search for packages | Search for packages | ||
- | fbpkg search tetris | + | |
Install a package | Install a package | ||
Line 24: | Line 24: | ||
===== Non-native ===== | ===== Non-native ===== | ||
- | **[[http:// | + | **Note**: It is easier to use pre-built toolchains from here: https:// |
+ | |||
+ | **[[http:// | ||
Required patches: | Required patches: | ||
- | * http:// | + | * http:// |
- | * http:// | + | * http:// |
- | * http:// | + | * http:// |
- | * http:// | + | * http:// |
+ | * http:// | ||
- | //Note: gcc-4.9.2-musl.patch is a merged patch from these patches: https:// | + | //Note: gcc-5.2.0-musl.patch is a merged patch from these patches: https:// |
- | patch -p1 -i ./gcc-4.9.2-musl.patch | + | patch -p1 -i ./gcc-5.2.0-musl.patch |
patch -p1 -i ./ | patch -p1 -i ./ | ||
patch -p1 -i ./ | patch -p1 -i ./ | ||
patch -p1 -i ./ | patch -p1 -i ./ | ||
+ | patch -p1 -i ./x86.diff | ||
//(Out of tree build)// | //(Out of tree build)// | ||
- | | + | |
| | ||
| | ||
- | | + | |
//Note: extracted [[docker|Docker]] images can be extracted for use as the sysroot if a full build of SnackLinux is undesireable// | //Note: extracted [[docker|Docker]] images can be extracted for use as the sysroot if a full build of SnackLinux is undesireable// | ||
- | make LDFLAGS=" | + | make LDFLAGS=" |
make DESTDIR=/ | make DESTDIR=/ | ||
Line 56: | Line 60: | ||
| | ||
- | //Note: this specs file is included by default: http:// | + | //Note: this specs file is included by default: http:// |
- | **[[http:// | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | make DESTDIR=/ | + | |
- | + | ||
- | + | ||
- | + | ||
**linux-headers** | **linux-headers** | ||
- | // | + | // |
- | make headers_install ARCH=x86 INSTALL_HDR_PATH=/ | + | make headers_install ARCH=x86_64 |
**linux-modules** | **linux-modules** | ||
make modules | make modules | ||
- | make modules_install ARCH=x86 INSTALL_MOD_PATH=/ | + | make modules_install ARCH=x86_64 |
+ | ** dropbear 2022.82** | ||
+ | CC=i486-linux-musl-gcc CROSS_COMPILE=i486-linux-musl- ./configure --disable-zlib --host=i486-linux-musl --enable-static | ||
+ | CC=i486-linux-musl-gcc make PROGRAMS=" | ||
===== Native ===== | ===== Native ===== | ||
- | **[[http:// | + | |
+ | **[[http:// | ||
./configure --prefix=/ | ./configure --prefix=/ | ||
sh build.sh | sh build.sh | ||
- | ./make DESTDIR=/ | ||
- | **[[https:// | + | Currently a bug running ./make install |
- | ./configure --disable-zlib --disable-wtmp | + | |
+ | ./make DESTDIR=/ | ||
+ | So for now, the binary is just copied in a tarball | ||
+ | |||
+ | **[[https:// | ||
+ | ./configure --disable-zlib | ||
make PROGRAMS=" | make PROGRAMS=" | ||
cp dropbearmulti / | cp dropbearmulti / | ||
Line 96: | Line 99: | ||
dropbearkey -t dss -f dropbear_dss_host_key | dropbearkey -t dss -f dropbear_dss_host_key | ||
dropbear | dropbear | ||
+ | |||
+ | **[[https:// | ||
+ | make CC=x86_64-linux-musl-gcc CFLAGS=-s LDFLAGS=-s | ||
+ | |||
+ | Example usage: ln -s / | ||
+ | |||
+ | |||
+ | ** [[http:// | ||
+ | | ||
+ | make | ||
+ | make DESTDIR=/ | ||
+ | |||
+ | |||
+ | ** [[http:// | ||
+ | make | ||
+ | make prefix=/ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | |||
+ | **[[http:// | ||
+ | //Note: binutils is first compiled using the cross compiler, so this is using the cross-compiled binutuls to compile a native binutils // | ||
+ | |||
+ | | ||
+ | | ||
+ | | ||
+ | make | ||
+ | make DESTDIR=/ | ||
+ | |||
+ | |||
** [[http:// | ** [[http:// | ||
Line 114: | Line 147: | ||
- | ** [[http:// | + | ** [[http:// |
+ | See: https:// | ||
+ | wget http:// | ||
sed -i ' | sed -i ' | ||
# | # | ||
sed -i ' | sed -i ' | ||
+ | patch -p1 < lilo-geometry.patch | ||
make alles | make alles | ||
cp src/ | cp src/ | ||
Line 158: | Line 194: | ||
make DESTDIR=/ | make DESTDIR=/ | ||
- | ** [[http:// | ||
- | make CC=" | ||
- | make prefix=/ | ||
** [[http:// | ** [[http:// | ||
Line 182: | Line 215: | ||
make DESTDIR=/ | make DESTDIR=/ | ||
- | ** [[http:// | + | ** [[http:// |
- | make posix test CC="musl-gcc | + | make posix test CFLAGS=" |
make local | make local | ||
Line 191: | Line 224: | ||
make DESTDIR=/ | make DESTDIR=/ | ||
- | ** [[http:// | ||
- | | ||
- | make | ||
- | make DESTDIR=/ | ||
** [[http:// | ** [[http:// | ||
Line 252: | Line 281: | ||
| | ||
| | ||
- | | + | |
+ | |||
+ | |||
+ | |||
+ | **[[http:// | ||
+ | < | ||
+ | | ||
+ | | ||
+ | | ||
+ | make DESTDIR=/ | ||
+ | </ |