Actually enable 32bit builds.

This only works with paravirt so far.  Need to create a kernel .config for
x86.
This commit is contained in:
Albert Hopkins 2012-12-21 19:12:25 +00:00
parent d2eb7124a7
commit 63bd1bdad8
3 changed files with 20 additions and 2 deletions

View File

@ -49,6 +49,10 @@ DOWNLOAD_DIR = .downloads
-include $(profile).cfg
inroot := chroot $(CHROOT)
ifeq ($(ARCH),x86)
inroot := linux32 $(inroot)
endif
stage4-exists := $(wildcard $(STAGE4_TARBALL))
software-deps := stage3
@ -148,8 +152,8 @@ else
endif
touch stage3
compile_options: portage make.conf locale.gen $(PACKAGE_FILES)
cp make.conf $(CHROOT)/etc/portage/make.conf
compile_options: portage make.conf.$(ARCH) locale.gen $(PACKAGE_FILES)
cp make.conf.$(ARCH) $(CHROOT)/etc/portage/make.conf
ifdef PKGDIR
echo PKGDIR="/var/portage/packages" >> $(CHROOT)/etc/portage/make.conf
endif

14
make.conf.x86 Normal file
View File

@ -0,0 +1,14 @@
CFLAGS="-Os"
CXXFLAGS="-Os"
CHOST="i686-pc-linux-gnu"
MAKEOPTS="-j2"
USE="-* nptl pam unicode"
ALSA_PCM_PLUGINS="*"
CLEAN_DELAY="0"
EMERGE_WARNING_DELAY="0"
AUTO_CLEAN="yes"
EPAUSE_IGNORE="1"
EMERGE_DEFAULT_OPTS="--jobs=2 --autounmask=n"
FEATURES="noinfo -test nodoc noman unmerge-orphans buildpkg notitles parallel-fetch"
CURL_SSL="openssl"
PYTHON_TARGETS="python2_7"