From owner-p4-projects@FreeBSD.ORG Wed Dec 2 19:05:04 2009 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id BD1B9106568F; Wed, 2 Dec 2009 19:05:03 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 80EAE1065698 for ; Wed, 2 Dec 2009 19:05:03 +0000 (UTC) (envelope-from raj@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 6DEE18FC0A for ; Wed, 2 Dec 2009 19:05:03 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id nB2J53Ft013422 for ; Wed, 2 Dec 2009 19:05:03 GMT (envelope-from raj@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id nB2J53Qx013420 for perforce@freebsd.org; Wed, 2 Dec 2009 19:05:03 GMT (envelope-from raj@freebsd.org) Date: Wed, 2 Dec 2009 19:05:03 GMT Message-Id: <200912021905.nB2J53Qx013420@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to raj@freebsd.org using -f From: Rafal Jaworowski To: Perforce Change Reviews Precedence: bulk Cc: Subject: PERFORCE change 171291 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Dec 2009 19:05:04 -0000 http://p4web.freebsd.org/chv.cgi?CH=171291 Change 171291 by raj@raj_fdt on 2009/12/02 19:04:07 Integrate libfdt code into kernel image. Enable FDT support code for MPC85XX kernel. Affected files ... .. //depot/projects/fdt/sys/conf/Makefile.powerpc#2 edit .. //depot/projects/fdt/sys/conf/files.powerpc#2 edit .. //depot/projects/fdt/sys/contrib/dtc/libfdt/libfdt_env.h#2 edit .. //depot/projects/fdt/sys/powerpc/conf/MPC85XX#2 edit Differences ... ==== //depot/projects/fdt/sys/conf/Makefile.powerpc#2 (text+ko) ==== @@ -32,6 +32,8 @@ CFLAGS+= -msoft-float +INCLUDES+= -I$S/contrib/dtc/libfdt + DDB_ENABLED!= grep DDB opt_ddb.h || true .if !empty(DDB_ENABLED) CFLAGS+= -fno-omit-frame-pointer ==== //depot/projects/fdt/sys/conf/files.powerpc#2 (text+ko) ==== @@ -15,6 +15,12 @@ clean "font.h ${SC_DFLT_FONT}-8x14 ${SC_DFLT_FONT}-8x16 ${SC_DFLT_FONT}-8x8" # +contrib/dtc/libfdt/fdt.c optional fdt +contrib/dtc/libfdt/fdt_ro.c optional fdt +contrib/dtc/libfdt/fdt_rw.c optional fdt +contrib/dtc/libfdt/fdt_strerror.c optional fdt +contrib/dtc/libfdt/fdt_sw.c optional fdt +contrib/dtc/libfdt/fdt_wip.c optional fdt crypto/blowfish/bf_enc.c optional crypto | ipsec crypto/des/des_enc.c optional crypto | ipsec | netsmb dev/bm/if_bm.c optional bm powermac @@ -63,6 +69,7 @@ libkern/fls.c standard libkern/flsl.c standard libkern/lshrdi3.c standard +libkern/memchr.c optional fdt libkern/memmove.c standard libkern/memset.c standard libkern/moddi3.c standard ==== //depot/projects/fdt/sys/contrib/dtc/libfdt/libfdt_env.h#2 (text+ko) ==== @@ -1,9 +1,17 @@ #ifndef _LIBFDT_ENV_H #define _LIBFDT_ENV_H +#ifdef _KERNEL +#include +#include +#include +#include +#include +#else #include #include #include +#endif #define _B(n) ((unsigned long long)((uint8_t *)&x)[n]) static inline uint32_t fdt32_to_cpu(uint32_t x) ==== //depot/projects/fdt/sys/powerpc/conf/MPC85XX#2 (text+ko) ==== @@ -25,6 +25,7 @@ options DEVICE_POLLING options HZ=1000 #options DIAGNOSTIC +options FDT options FFS options GDB options GEOM_PART_GPT