Re: [fpc-pascal] FPC ARMEL and ARMHF under the same tree
> I didn't continue yet because I'am not sure if subarch-abi are sufficient or if another directory > level with e.g. fpu type, custom options (debugging info, optimization > level etc.) might be useful. > Or if it would be only over engineering ... fpcmkcfg already generates $fpcsubarch-$fpcmemorymodel for 8086 target (although the make script uses 'msdos' only as directory name), so I guess at least $fpcsubarch is enough for arm. I don't think custom options are necessary to support, but providing config macros for them could be useful. bad suggestion: consider it different target processor, so we have ppcrossarmel & ppcrossarmhf -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/FPC-ARMEL-and-ARMHF-under-the-same-tree-tp5721845p5721853.html Sent from the Free Pascal - General mailing list archive at Nabble.com. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FPC ARMEL and ARMHF under the same tree
> You can rename the compiler binaries to anything you want. Then how would fpc be able to call the renamed binaries? I rely on fpc -P for calling the cross compiler. > A bigger problem is that all units will also be stored in the same > directories. If there's anyway to retrieve either the armel/armhf or whatever string that identifies the target, I can make a good use of it to store the units to different directories. -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/FPC-ARMEL-and-ARMHF-under-the-same-tree-tp5721845p5721852.html Sent from the Free Pascal - General mailing list archive at Nabble.com. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FPC ARMEL and ARMHF under the same tree
Am 18.06.2015 um 17:55 schrieb Jonas Maebe: > On 17/06/15 20:18, leledumbo wrote: >> I currently have my [cross-]compilers under the same tree, to ease management >> and the ability to use single fpc.cfg. AFAIU FPC ARMEL and ARMHF are two >> distinct targets, thus two distinct compiler binary. However, the compiler >> binary has the same name. So, how can I have both under the same tree? I >> need to target both arm-android (my phone) and arm-linux (Raspberry Pi). > > You can rename the compiler binaries to anything you want. A bigger > problem is that all units will also be stored in the same directories. > Florian recently started a branch to add support for sub-architectures > in the unit directory structure > (http://svn.freepascal.org/svn/fpc/branches/target-subdir/ ), but it > still requires changes to fpmkunit/fpmake. I didn't continue yet because I'am not sure if subarch-abi are sufficient or if another directory level with e.g. fpu type, custom options (debugging info, optimization level etc.) might be useful. Or if it would be only over engineering ... ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FPC ARMEL and ARMHF under the same tree
On 17/06/15 20:18, leledumbo wrote: > I currently have my [cross-]compilers under the same tree, to ease management > and the ability to use single fpc.cfg. AFAIU FPC ARMEL and ARMHF are two > distinct targets, thus two distinct compiler binary. However, the compiler > binary has the same name. So, how can I have both under the same tree? I > need to target both arm-android (my phone) and arm-linux (Raspberry Pi). You can rename the compiler binaries to anything you want. A bigger problem is that all units will also be stored in the same directories. Florian recently started a branch to add support for sub-architectures in the unit directory structure (http://svn.freepascal.org/svn/fpc/branches/target-subdir/ ), but it still requires changes to fpmkunit/fpmake. Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
[fpc-pascal] FPC ARMEL and ARMHF under the same tree
I currently have my [cross-]compilers under the same tree, to ease management and the ability to use single fpc.cfg. AFAIU FPC ARMEL and ARMHF are two distinct targets, thus two distinct compiler binary. However, the compiler binary has the same name. So, how can I have both under the same tree? I need to target both arm-android (my phone) and arm-linux (Raspberry Pi). -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/FPC-ARMEL-and-ARMHF-under-the-same-tree-tp5721845.html Sent from the Free Pascal - General mailing list archive at Nabble.com. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal