buildkernel error on Current

Mori Hiroki yamori813 at yahoo.co.jp
Tue Apr 23 21:49:12 UTC 2019


Hi

This is cause of build error.

https://svnweb.freebsd.org/base?view=revision&sortby=date&revision=345519


This is patch.

diff --git a/sys/conf/kern.post.mk b/sys/conf/kern.post.mk
index a831e94e241..9f9df19c9ac 100644
--- a/sys/conf/kern.post.mk
+++ b/sys/conf/kern.post.mk
@@ -8,6 +8,7 @@
 # should be defined in the kern.pre.mk so that port makefiles can
 # override or augment them.
 
+.if ${MACHINE_CPUARCH} != "mips"
 .if !empty(FDT_DTS_FILE)
 DTS+=                  ${FDT_DTS_FILE}
 .endif
@@ -20,6 +21,7 @@CLEAN+=               ${DTB} ${DTBO}
 kernel-install: _dtbinstall
 .ORDER: beforeinstall _dtbinstall
 .endif
+.endif
 
 # In case the config had a makeoptions DESTDIR...
 .if defined(DESTDIR)

Hiroki Mori


----- Original Message -----
> From: Mori Hiroki <yamori813 at yahoo.co.jp>
> To: "freebsd-mips at freebsd.org" <freebsd-mips at freebsd.org>
> Cc: 
> Date: 2019/4/23, Tue 18:03
> Subject: buildkernel error on Current
> 
> Hi
> 
> I have q error on Mediatek now.
> 
> Why copy dtb to rootfs? Mediatek dtb is static.
> 
> --------------------------------------------------------------
>>>>  Installing kernel Fon_FON2412 on Tue Apr 23 17:47:33 JST 2019
> --------------------------------------------------------------
> cd 
> /usr/home/hiroki/zobj/usr/home/hiroki/ZRouter/tmp/usr/home/hiroki/freebsd/mips.mipsel/sys/Fon_FON2412;  
> MACHINE_ARCH=mipsel  MACHINE=mips  CPUTYPE= CC="cc 
> --sysroot=/usr/home/hiroki/zobj/usr/home/hiroki/ZRouter/tmp/usr/home/hiroki/freebsd/mips.mipsel/tmp 
> -B/usr/home/hiroki/zobj/usr/home/hiroki/ZRouter/tmp/usr/home/hiroki/freebsd/mips.mipsel/tmp/usr/bin" 
> CXX="c++  
> --sysroot=/usr/home/hiroki/zobj/usr/home/hiroki/ZRouter/tmp/usr/home/hiroki/freebsd/mips.mipsel/tmp 
> -B/usr/home/hiroki/zobj/usr/home/hiroki/ZRouter/tmp/usr/home/hiroki/freebsd/mips.mipsel/tmp/usr/bin"  
> CPP="cpp 
> --sysroot=/usr/home/hiroki/zobj/usr/home/hiroki/ZRouter/tmp/usr/home/hiroki/freebsd/mips.mipsel/tmp 
> -B/usr/home/hiroki/zobj/usr/home/hiroki/ZRouter/tmp/usr/home/hiroki/freebsd/mips.mipsel/tmp/usr/bin"  
> AS="as" AR="ar" LD="ld" LLVM_LINK=""  
> NM=nm OBJCOPY="objcopy"  RANLIB=ranlib STRINGS=  SIZE="size" 
> PATH=/usr/home/hiroki/zobj/usr/home/hiroki/ZRouter/tmp/usr/home/hiroki/freebsd/mips.mipsel/tmp/usr/sbin:/usr/home/hiroki/zobj/usr/home/hiroki/ZRouter/tmp/usr/home/hiroki/freebsd/mips.mipsel/tmp/usr/bin:/usr/home/hiroki/zobj/usr/home/hiroki/ZRouter/tmp/usr/home/hiroki/freebsd/mips.mipsel/tmp/legacy/usr/sbin:/usr/home/hiroki/zobj/usr/home/hiroki/ZRouter/tmp/usr/home/hiroki/freebsd/mips.mipsel/tmp/legacy/usr/bin:/usr/home/hiroki/zobj/usr/home/hiroki/ZRouter/tmp/usr/home/hiroki/freebsd/mips.mipsel/tmp/legacy/bin::/sbin:/bin:/usr/sbin:/usr/bin  
> make  KERNEL=kernel install
> test -d /home/hiroki/zobj//usr/home/hiroki/ZRouter/Fon_FON2412_rootfs/boot/dtb 
> || install -d -o root -g wheel 
> /home/hiroki/zobj//usr/home/hiroki/ZRouter/Fon_FON2412_rootfs/boot/dtb
> install -o root -g wheel -m 444   FON2412J.dtb 
> /home/hiroki/zobj//usr/home/hiroki/ZRouter/Fon_FON2412_rootfs/boot/dtb/
> install: 
> /home/hiroki/zobj//usr/home/hiroki/ZRouter/Fon_FON2412_rootfs/boot/dtb/FON2412J.dtb: 
> chown/chgrp: Operation not permitted
> *** Error code 71
> 
> Hiroki Mori
> 
> _______________________________________________
> freebsd-mips at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-mips 
> To unsubscribe, send any mail to 
> "freebsd-mips-unsubscribe at freebsd.org"
> 



More information about the freebsd-mips mailing list