Skip to content

Commit

Permalink
Add architecture support for TinyBSD
Browse files Browse the repository at this point in the history
PR:		135301
Submitted by:	Olivier Cochard-Labbe <olivier at cochard dot me>
Reviewed by:	Jean Milanez Melo <jmelo at freebsdbrasil dot com dot br> (maintainer)
Approved by:	imp (mentor, implicit)
MFC after:	1 week
  • Loading branch information
remkolodder committed Jun 20, 2009
1 parent 7f92e57 commit 556de49
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tools/tools/tinybsd/tinybsd
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ BASEFILE="tinybsd.basefiles"
PORTSFILE="tinybsd.ports"
PORTSDIR=/usr/ports
DEFINSTARGS="-o 0 -g 0 -m 555"
TINYARCH=$(uname -p)

TS="=====>"

splitarg1 () {
Expand Down Expand Up @@ -331,15 +333,15 @@ install_ports() {

make_kernel() {
echo "${TS} Building customized tiny beastie kernel... "
cp -p ${CURRENTDIR}/conf/${CONF}/${KERNCONF} /usr/src/sys/i386/conf
cp -p ${CURRENTDIR}/conf/${CONF}/${KERNCONF} /usr/src/sys/${TINYARCH}/conf
cd /usr/src
make buildkernel KERNCONF=${KERNCONF} || exit 1
gzip -9 /usr/obj/usr/src/sys/${KERNCONF}/kernel
install ${DEFINSTARGS} /usr/obj/usr/src/sys/${KERNCONF}/kernel.gz ${WORKDIR}/boot/kernel/
install ${DEFINSTARGS} \
/usr/obj/usr/src/sys/${KERNCONF}/modules/usr/src/sys/modules/acpi/acpi/acpi.ko \
${WORKDIR}/boot/kernel
install -o 0 -g 0 -m 444 /sys/i386/conf/GENERIC.hints ${WORKDIR}/boot/device.hints
install -o 0 -g 0 -m 444 /sys/${TINYARCH}/conf/GENERIC.hints ${WORKDIR}/boot/device.hints
}

copy_libraries() {
Expand Down

0 comments on commit 556de49

Please sign in to comment.