mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 00:02:14 -04:00
release: install wireless firmware onto disc1 and dvd
Wireless driver firmware is no longer added to the src tree. In order to have wireless support in the installer for the new drivers we install the firmware packages onto disc1 (and memstick) and dvd if built on FreeBSD and NOPKG is not defined (to not break cross-builds from Linux or OSX and to allow people to opt-out). Sponsored by: The FreeBSD Foundation Submitted by: cperciva (the orig. commands and where to place them) Reviewed by: jrtc27 Approved by: re (cperciva) Differential Revision: https://reviews.freebsd.org/D47407 (cherry picked from commit7e2996c1f5) (cherry picked from commitb62012538e)
This commit is contained in:
parent
cce4df8b3c
commit
c5b8ed13c9
1 changed files with 19 additions and 0 deletions
|
|
@ -70,6 +70,17 @@ VOLUME_LABEL= ${REVISION:C/[.-]/_/g}_${BRANCH:C/[.-]/_/g}_${TARGET_ARCH}
|
|||
.endfor
|
||||
.endif
|
||||
|
||||
.if ${.MAKE.OS} == "FreeBSD"
|
||||
# For installing packages into the release media.
|
||||
.if defined(NO_ROOT)
|
||||
PKG_ENV+= INSTALL_AS_USER=yes
|
||||
PKG_ARGS+= -o METALOG=METALOG
|
||||
.endif
|
||||
PKG_ENV+= ASSUME_ALWAYS_YES=yes
|
||||
PKG_ARGS+= -r ${.TARGET} -o REPOS_DIR=${.CURDIR}/pkg_repos
|
||||
PKG_INSTALL= env ${PKG_ENV} ${PKG_CMD} ${PKG_ARGS} install
|
||||
.endif
|
||||
|
||||
.if !defined(VOLUME_LABEL) || empty(VOLUME_LABEL)
|
||||
VOLUME_LABEL= FreeBSD_Install
|
||||
.endif
|
||||
|
|
@ -186,6 +197,10 @@ disc1: packagesystem
|
|||
do echo "./usr/freebsd-dist/$${dist} type=file uname=root gname=wheel mode=0644" >> ${.TARGET}/METALOG; \
|
||||
done
|
||||
.endif
|
||||
.if ${.MAKE.OS} == "FreeBSD" && (!defined(NOPKG) || empty(NOPKG))
|
||||
# Install packages onto release media.
|
||||
${PKG_INSTALL} wifi-firmware-kmod-release
|
||||
.endif
|
||||
# Set up installation environment
|
||||
ln -fs /tmp/bsdinstall_etc/resolv.conf ${.TARGET}/etc/resolv.conf
|
||||
echo sendmail_enable=\"NONE\" > ${.TARGET}/etc/rc.conf
|
||||
|
|
@ -256,6 +271,10 @@ dvd: packagesystem
|
|||
do echo "./usr/freebsd-dist/$${dist} type=file uname=root gname=wheel mode=0644" >> ${.TARGET}/METALOG; \
|
||||
done
|
||||
.endif
|
||||
.if ${.MAKE.OS} == "FreeBSD" && (!defined(NOPKG) || empty(NOPKG))
|
||||
# Install packages onto release media.
|
||||
${PKG_INSTALL} wifi-firmware-kmod-release
|
||||
.endif
|
||||
# Set up installation environment
|
||||
ln -fs /tmp/bsdinstall_etc/resolv.conf ${.TARGET}/etc/resolv.conf
|
||||
echo sendmail_enable=\"NONE\" > ${.TARGET}/etc/rc.conf
|
||||
|
|
|
|||
Loading…
Reference in a new issue