-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUILD] Building the toolchain does not build/install libdw_uart.a #262
Comments
If I remove
But still the |
The problem here is due to the fact that we try to determine a CPU type looking at
The first solution that comes to my mind is to get rid of this CPU family nonsense as how common sense suggests UART driver should have nothing to do with a CPU family, isn't it? So let's try this:
But apparently we do way more than required for the plain simple UART driver as we fail while building for ARC700:
So what can we do here:
|
BTW I'm wondering if that UART driver with support of interrupts & exceptions is upstreamable at all, so maybe drop it and forget about that for good since we have QEMU stubs now? @claziss @shahab-vahedi what's your take on this? |
@abrodkin The proposed patch does generate |
Newlib is partially upstream, there is no answer from those guys to our hails, don't know why. Regarding, libgloss' UART, we can do whatever we want as this library supposedly adds I/O support for various platforms. |
@Palmyr3 suggests to have very limited UART support in libgloss. In particular only output in polling mode. That will give us much simpler driver which is applicable to any ARC ISA and any platform (when both nSIM & QEMU support DW UART). If somebody needs full serial port with IRQs it makes sense to leave it to him/her to implement it. |
That's fine, indeed we don't need to break our backs to get a simple I/O done ;) |
As discussed on OS core-team this one will be documented as a known issue for |
Once we implement "MetaWare Hostlink" (see #296) that issue will become irrelevant as we'll be able to use it for any types of targets be it an nSIM, xCAM or even FPGA or real ASIC. |
Please find PR with remove dwuart support here: foss-for-synopsys-dwc-arc-processors/newlib#16 |
@claziss, @shahab-vahedi are we moving this to the next release |
DW UART is removed from newlib (switched to UART 8250 which is written in C). So close. |
foss-for-synopsys-dwc-arc-processors/newlib#23 not merged yet, so reopen |
DW UART is removed from newlib (switched to UART 8250 which is written in C). So close. |
versions
build command
problem
Building a hello world program with a command like below fails:
investigation
Building the toolchain with the above commands, although creates this directory
It never compiles the
dw_uart
. Executingmake
command in that directory does build some.o
files, but notlibdw_uart.a
in parent directory of course.expected behavior
libdw_uart.a
is built and installed.Please let me know if you need more info.
The text was updated successfully, but these errors were encountered: