DragonFly kernel List (threaded) for 2007-09
Re: [PATCH] amd64 port kernel build/link patches
there is a README.amd64 file that includes in the patch. anyway, follow this:
after applying the patch, set this
and then do the make buildworld that will build all the cross
toolchain and the world utilities, but not pkgsrc.
then do the make -k buildkernel KERNCONF=AMD64_GENERIC, that will
build and link the kernel. the emulation linux is compiled with errors
and i have spent time on it more than dumping in Freebsd related code.
that is the reason to use -k for this. After that, you will have the
kernel.debug and kernel.stripped and modules in
The patch includes two temp files that i forget to remove and i will
also reorganize the folder structure.
Again, it is only the linked kernel with tons of dummy codes, far from
something that is able to execute.
On 9/17/07, Petr Janda <email@example.com> wrote:
> I'd love to try it. But I dont know a few things:
> - How do I cross-compile?
> - I believe I will have to recompile all of my 3rd party programs from pkgsrc.
> Correct? What's the chance that more pkgsrc programs wont work?
> On Mon, 17 Sep 2007 09:57:58 am Yonghong Yan wrote:
> > not seeing feedback of this patch and i tend to commit them and move
> > on :), deal?
> > yonghong
> > On 9/13/07, Noah yan <firstname.lastname@example.org> wrote:
> > > Please check the attached three patches that are for the amd64 kernel
> > > build and linking.
> > >
> > > The patch.syssys includes patches for files that are platform
> > > independent. but all changes are about the #ifdef, e.g. add
> > > defined(__amd64).
> > >
> > > patch.kmod is for sys/conf/kmod.mk, i.e to add amd64-specific kld
> > > module linking targets. please help double check this.
> > >
> > > The big patch.amd64 includes patches of files from sys/cpu/amd64,
> > > sys/platform/pc64, sys/emulation/linux/amd64 and
> > > sys/config/AMD64_GENERIC. They are all amd64/pc64 specific. Other than
> > > the header files, most of those sources are dummy code and we include
> > > them just to make the kernel linked. These dummy codes requires
> > > completely redo work so you probably donot want to spend time on
> > > codes that are going to be trashed soon :).
> > >
> > > they did not break the i386 world/kernel build and i upgraded my box
> > > from them without any trouble.
> > >
> > > Thanks
> > > Yonghong