mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-23 07:31:31 +00: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 MFC after: 6 hours Differential Revision: https://reviews.freebsd.org/D47407
This commit is contained in:
parent
65f5dd42f1
commit
7e2996c1f5
@ -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
|
||||
@ -180,6 +191,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
|
||||
@ -252,6 +267,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 New Issue
Block a user