Am Montag, 1. November 2010, 21:29:18 schrieb Andrew:
> 01.11.2010 22:07, KP Kirchdoerfer пишет:
> > Am Montag, 1. November 2010, 17:49:33 schrieb Andrew:
> >> 01.11.2010 16:23, KP Kirchdoerfer пишет:
> >>> Am Montag, 1. November 2010, 12:54:53 schrieb Andrew:
> >>>> Hi all.
> >>>> I have done support for multiple subarchs (or even different configs
> >>>> for one subarch), and it seems that it will work OK.
> >>>> Currently new subarch requires:
> >>>> 1) record in KARCHS variable in MasterInclude.mk with it's name
> >>>> 2) patch file into linux package, with name
> >>>> $(CONFIGNAME.config)-$(SUBARCH).patch
> >>>> 3) separate package description in initrd buildtool.cfg
> >>>> 4) separate package description in kmodules buildtool.cfg
> >>>> 
> >>>> I also removed symlink linux in the linux package directory - it is
> >>>> meanless now.
> >>>> 
> >>>> About kernel-dependent package building:
> >>>> 1) some packages requires path to kernel include directory - just
> >>>> replace in path $(BT_LINUX_DIR) to
> >>>> $(BT_LINUX_DIR)-$(BT_KERNEL_VERSION) 2) some packages (like
> >>>> accel-pptp's patched poptop) requires path to include/linux/version.h
> >>>> - so they wants path to linux-$(SUBARCH); IMHO it'll be enough to
> >>>> specify path to any building dir.
> >>>> 3) kernel modules (drivers&   etc) - they must be rebuilded for _each_
> >>>> subarch&   module must be copied to corresponding directory (for
> >>>> examples - look at accel-pptp)
> >>> 
> >>> Andrew,
> >>> something went wrong...:
> >>> patch: **** Can't open patch file Bering-2.6.35.7.config-i686.patch :
> >>> No such file or directory
> >>> 
> >>> and the content of Bering-2.6.35.7-i686.patch:
> >>> 
> >>> --- Bering-2.6.35.7.config      2010-10-31 21:27:15.770085373 +0200
> >>> +++ Bering-2.6.35.7.config-i686 2010-10-31 21:30:37.231807259 +0200
> >>> @@ -20,7 +20,7 @@
> >>> 
> >>>    CONFIG_HAVE_LATENCYTOP_SUPPORT=y
> >>>    CONFIG_MMU=y
> >>>    CONFIG_ZONE_DMA=y
> >>> 
> >>> -# CONFIG_NEED_DMA_MAP_STATE is not set
> >>> +# CONFIG_NEED_DMA_MAP_STATE is not set
> >>> 
> >>>    CONFIG_NEED_SG_DMA_LENGTH=y
> >>>    CONFIG_GENERIC_ISA_DMA=y
> >>>    CONFIG_GENERIC_IOMAP=y
> >>> 
> >>> Bering-2.6.35.7.config-i686 ist empty...
> >>> 
> >>> regards kp
> >> 
> >> Fixed. I changed name of patch, but forgot to commit changed
> >> buildtool.cfg
> > 
> > Hi Andrew;
> > 
> > ok it starts compiling buildenv.
> > 
> > Do I understand the current process correct, that
> > a) a new masterinclude is needed for each arch?
> 
> No, just added arch suffix into masterinclude.mk; and then rebuild all.

Sorry, I was a bit short; that's what I meant. 
 
> > b) the kernel and modules has to be rebuild and packaged seperately?
> 
> No, all building process for different kernels is done automatically for
> all packages.You just need to add package items into initrd and moddb.

But I do have to start the build process for each arch again after modifying 
masterinclude.mk...

> > c) all kernel related needs to be recompiled?
> 
> After adding new arch - only packages that provide kernel modules must
> be recompiled, to make modules for that arch. Userlevel software isn't
> dependent against kernel configuration IMHO.
> 
> > d) Do those packages have be provided for each arch or just the modules
> > they generate?
> 
> Just modules.

Ok; let's see how this works in the first step. 
Improvements of the build process can be done later :)

Looks indeed promising!
(and easily to give by after the latest discussion about kernel archs - code 
is always the most convincing argument :))

kp

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev

_______________________________________________
leaf-devel mailing list
leaf-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-devel

Reply via email to