tools-musl: add build for mips
This commit is contained in:
parent
b80e4e5ff8
commit
2298afb710
12 changed files with 1105 additions and 5 deletions
1
tools-musl/portage.mips/env/libintl.conf
vendored
Normal file
1
tools-musl/portage.mips/env/libintl.conf
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
LDFLAGS=-lintl
|
1
tools-musl/portage.mips/env/parallel.conf
vendored
Normal file
1
tools-musl/portage.mips/env/parallel.conf
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
MAKEOPTS=-j1
|
18
tools-musl/portage.mips/make.conf
Normal file
18
tools-musl/portage.mips/make.conf
Normal file
|
@ -0,0 +1,18 @@
|
|||
CHOST=MY_CHOST
|
||||
CFLAGS="-Os -pipe -fomit-frame-pointerMY_CFLAGS"
|
||||
CXXFLAGS="${CFLAGS}"
|
||||
|
||||
USE="-hardened -fortran -mudflap"
|
||||
USE="${USE} -xattr python zlib"
|
||||
|
||||
MAKEOPTS="-j9"
|
||||
|
||||
INSTALL_MASK="charset.alias"
|
||||
PORTDIR="/usr/portage"
|
||||
|
||||
source /var/lib/layman/make.conf
|
||||
|
||||
GENTOO_MIRRORS="ftp://192.168.3.1/pub/gentoo"
|
||||
SYNC="rsync://192.168.3.1/portage"
|
||||
|
||||
source /var/lib/layman/make.conf
|
3
tools-musl/portage.mips/package.accept_keywords
Normal file
3
tools-musl/portage.mips/package.accept_keywords
Normal file
|
@ -0,0 +1,3 @@
|
|||
=sys-apps/getent-0 ~amd64 ~arm ~x86
|
||||
=sys-libs/musl-1.0.0 ~amd64 ~arm ~x86
|
||||
=app-text/openjade-1.3.2-r6 ~amd64 ~arm ~x86
|
7
tools-musl/portage.mips/package.env
Normal file
7
tools-musl/portage.mips/package.env
Normal file
|
@ -0,0 +1,7 @@
|
|||
dev-vcs/git libintl.conf
|
||||
sys-apps/kbd libintl.conf
|
||||
sys-apps/man-db parallel.conf
|
||||
sys-apps/net-tools libintl.conf
|
||||
sys-fs/e2fsprogs libintl.conf
|
||||
sys-fs/eudev libintl.conf
|
||||
sys-process/procps libintl.conf
|
9
tools-musl/portage.mips/package.mask
Normal file
9
tools-musl/portage.mips/package.mask
Normal file
|
@ -0,0 +1,9 @@
|
|||
>app-misc/pax-utils-0.7
|
||||
>dev-libs/glib-2.36.4-r99
|
||||
>sys-apps/kbd-1.15.5-r99
|
||||
>sys-apps/net-tools-1.60_p20120127084908-r99
|
||||
>sys-apps/util-linux-2.23.1-r99
|
||||
sys-apps/systemd
|
||||
>sys-devel/gcc-4.7.3-r99
|
||||
sys-fs/udev
|
||||
>sys-process/procps-3.3.8-r99
|
3
tools-musl/portage.mips/package.use
Normal file
3
tools-musl/portage.mips/package.use
Normal file
|
@ -0,0 +1,3 @@
|
|||
dev-vcs/git -gpg
|
||||
sys-fs/e2fsprogs -nls
|
||||
sys-apps/busybox -* savedconfig
|
7
tools-musl/portage.mips/repos.conf/gentoo.conf
Normal file
7
tools-musl/portage.mips/repos.conf/gentoo.conf
Normal file
|
@ -0,0 +1,7 @@
|
|||
[DEFAULT]
|
||||
main-repo = gentoo
|
||||
|
||||
[gentoo]
|
||||
location = /usr/portage
|
||||
sync-type = rsync
|
||||
sync-uri = rsync://192.168.3.1/portage
|
1035
tools-musl/portage.mips/savedconfig/sys-apps/busybox-1.22.1-r99
Normal file
1035
tools-musl/portage.mips/savedconfig/sys-apps/busybox-1.22.1-r99
Normal file
File diff suppressed because it is too large
Load diff
|
@ -2,7 +2,7 @@ CHOST=MY_CHOST
|
|||
CFLAGS="-Os -pipe -fomit-frame-pointerMY_CFLAGS"
|
||||
CXXFLAGS="${CFLAGS}"
|
||||
|
||||
USE="-hardened -fortran -mudflap"
|
||||
USE="-cxx -hardened -fortran -mudflap"
|
||||
USE="${USE} -xattr python zlib"
|
||||
|
||||
MAKEOPTS="-j9"
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
sys-fs/udev
|
||||
>sys-devel/gcc-4.7.3-r99
|
||||
sys-apps/systemd
|
||||
sys-fs/udev
|
||||
|
|
|
@ -21,6 +21,12 @@ elif [[ "${TEST_ARCH}" == "ARM" ]]; then
|
|||
MY_CFLAGS=" -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard"
|
||||
MY_PROF="arm/armv7a"
|
||||
MY_PATH="armhf"
|
||||
elif [[ "${TEST_ARCH}" == "MIPS" ]]; then
|
||||
MY_ARCH="MIPS"
|
||||
MY_CHOST="mipsel-gentoo-linux-musl"
|
||||
MY_CFLAGS=""
|
||||
MY_PROF="mips/mipsel"
|
||||
MY_PATH="mipsel"
|
||||
else
|
||||
echo "Unsupported arch $TEST_ARCH"
|
||||
exit
|
||||
|
@ -31,7 +37,11 @@ PWD="$(pwd)"
|
|||
|
||||
prepare_etc () {
|
||||
mkdir -p "${ROOTFS}"/etc
|
||||
if [[ "${MY_ARCH}" == "MIPS" ]]; then
|
||||
cp -a "${PWD}"/portage.mips/ "${ROOTFS}"/etc/portage
|
||||
else
|
||||
cp -a "${PWD}"/portage/ "${ROOTFS}"/etc/
|
||||
fi
|
||||
sed -i "s/MY_CHOST/${MY_CHOST}/" "${ROOTFS}"/etc/portage/make.conf
|
||||
sed -i "s/MY_CFLAGS/${MY_CFLAGS}/" "${ROOTFS}"/etc/portage/make.conf
|
||||
ln -sf ../../usr/portage/profiles/hardened/linux/musl/"${MY_PROF}" "${ROOTFS}"/etc/portage/make.profile
|
||||
|
@ -47,7 +57,12 @@ prepare_usr_etc() {
|
|||
/usr/${MY_CHOST}/lib
|
||||
EOF
|
||||
|
||||
# mips-muls needs some tlc upstream
|
||||
if [[ "${MY_ARCH}" == "MIPS" ]]; then
|
||||
ln -sf ld-musl-${MY_PATH}.path "${ROOTFS}"/etc/ld-musl.path
|
||||
else
|
||||
ln -sf ld-musl-${MY_PATH}.path "${ROOTFS}"/usr/etc/ld-musl.path
|
||||
fi
|
||||
}
|
||||
|
||||
prepare_overlay() {
|
||||
|
|
Loading…
Add table
Reference in a new issue