config: modifications for upcoming PRI2 test build

This commit is contained in:
Franco Fichtner 2017-08-29 09:24:46 +02:00
parent 7b2db9a45b
commit a7860ec944
3 changed files with 41 additions and 8 deletions

View File

@ -129,10 +129,14 @@ to install a qemu package for user mode emulation:
# pkg install qemu-user-static
It will also require a matching u-boot package, e.g.:
# pkg install u-boot-rpi2
A viable cross-build target is the Raspberry Pi 2 using
the following options:
# make base kernel ARCH=arm:armv6 KERNEL=RPI2
# make base kernel ARCH=arm:armv6 KERNEL=SMP-RPI2
In order to speed up building of using an emulated build,
the xtools set can be built:
@ -144,9 +148,6 @@ the distfiles set.
# make packages ARCH=arm:armv6
We do not provide ARM images at this point. The sets can
be used to bootstrap a running FreeBSD on such devices.
About other scripts and tweaks
==============================

View File

@ -44,10 +44,7 @@ git_describe ${SRCDIR}
KERNEL_DEBUG_SET=${SETSDIR}/kernel-dbg-${REPO_VERSION}-${PRODUCT_ARCH}.txz
KERNEL_RELEASE_SET=${SETSDIR}/kernel-${REPO_VERSION}-${PRODUCT_ARCH}.txz
if [ -f ${CONFIGDIR}/${PRODUCT_KERNEL}.${PRODUCT_ARCH} ]; then
cp "${CONFIGDIR}/${PRODUCT_KERNEL}.${PRODUCT_ARCH}" \
"${SRCDIR}/sys/${PRODUCT_TARGET}/conf/${PRODUCT_KERNEL}"
elif [ -f ${CONFIGDIR}/${PRODUCT_KERNEL} ]; then
if [ -f ${CONFIGDIR}/${PRODUCT_KERNEL} ]; then
cp "${CONFIGDIR}/${PRODUCT_KERNEL}" \
"${SRCDIR}/sys/${PRODUCT_TARGET}/conf/${PRODUCT_KERNEL}"
fi

35
config/17.7/SMP-RPI2 Normal file
View File

@ -0,0 +1,35 @@
include RPI2
ident SMP-RPI2
# Remove to build a debug kernel:
nomakeoptions DEBUG
options DDB
options GEOM_BDE
options GEOM_ELI
options GEOM_MIRROR
options GEOM_UZIP
options IPFIREWALL_DEFAULT_TO_ACCEPT
options IPFIREWALL_VERBOSE
options IPSEC_NAT_T
options IPSTEALTH
options MROUTING
options PPS_SYNC
options TCP_SIGNATURE
# Wireless features
device wlan_acl
device wlan_xauth
# Not all architectures have a consistent GENERIC
device netmap
# HardenedBSD goodies
options PAX
options PAX_ASLR
options PAX_HARDENING
options PAX_SEGVGUARD
# OPNsense additions
#options PF_SHARE_FORWARD