From: Andrey Smirnov <andrew.smirnov@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: Ada(GNAT) support in OE
Date: Sun, 06 Feb 2011 16:16:30 +0600 [thread overview]
Message-ID: <87r5blzcgl.fsf@gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1199 bytes --]
Hi, everyone!
Bitbake-1.10.2 and OE from git here and I am trying to add some
rudimentary support of Ada language(GNAT) to OE(for now it is just
building a cross compiler)
As of this moment I managed to build some semblance of a cross compiler
(it builds simple "hello world" executable) by creating a verbatim copy
of gcc-cross_4.4.4.bb, all files it depends upon to my local recipes
directory and making slight modification to gcc-configure-common.inc
(see modifications.patch) but this rises a couple of questions:
- Would anyone be interested in adding such changes? If so, am I going
in right direction or is there another more elegant and preferred way
to add compiler support?
- Ada compiler bootstrapping process requires host system to have
working Ada compiler implementation, how can this, and should it all
be reflected in the recipe?
- Provided I am successful in my endeavor, writing BitBake recipe for
Ada program would require gnatmake, gnatbind, gnatlink tools to be
accessible through some variables(the same way C compiler is
available via CC) how can this be implemented?
Thanks in advance for answering!
Andrey Smirnov
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Crude attempt to add Ada support to OE --]
[-- Type: text/x-diff, Size: 1135 bytes --]
diff -u -w /home/ndreys/Workspace/oe/sources/openembedded/recipes/gcc/gcc-configure-common.inc /home/ndreys/Workspace/oe/sandbox/recipes/oe-ada/gcc-configure-common.inc
--- /home/ndreys/Workspace/oe/sources/openembedded/recipes/gcc/gcc-configure-common.inc 2011-02-04 20:34:08.841641002 +0600
+++ /home/ndreys/Workspace/oe/sandbox/recipes/oe-ada/gcc-configure-common.inc 2011-02-05 20:39:08.857900000 +0600
@@ -15,6 +15,12 @@
OBJC_mips ?= ""
OBJC_mipsel ?= ""
OBJC ?= ",objc"
+ADA ?= ",ada"
+ADA_arm ?= ""
+ADA_armeb ?= ""
+ADA_mipsel ?= ""
+ADA_sh3 ?= ""
+
# disable --enable-target-optspace for powerpc SPE
# at -Os libgcc.so.1 creates references into
# hidden symbols in libgcc.a which linker complains
@@ -23,7 +29,7 @@
OPTSPACE = "${@base_contains('TARGET_ARCH', 'powerpc', '', '--enable-target-optspace',d)}"
# gcc 3.x expects 'f77', 4.0 expects 'f95', 4.1 and 4.2 expect 'fortran'
FORTRAN ?= ",f77"
-LANGUAGES ?= "c,c++${OBJC}${FORTRAN}${JAVA}"
+LANGUAGES ?= "c,c++${OBJC}${FORTRAN}${JAVA}${ADA}"
EXTRA_OECONF_BASE ?= ""
EXTRA_OECONF_PATHS ?= ""
Diff finished. Sun Feb 6 15:19:32 2011
next reply other threads:[~2011-02-06 10:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-06 10:16 Andrey Smirnov [this message]
2011-02-24 2:38 ` Ada(GNAT) support in OE Khem Raj
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r5blzcgl.fsf@gmail.com \
--to=andrew.smirnov@gmail.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.