Xcode 4 for developing an embedded Linux kernel?

I am trying to use Xcode 4 (with external firmware) for embedded Linux to develop the ARM kernel. Please note that I have all the cross-compilers and tools that work from the command line on a Mac, but would like to use Xcode for convenience.

The standard make phase (make ARCH = arm CROSS_COMPILE = arm-none-eabiuImage) works fine, but cannot figure out how:

(a) Create a target that requires interactive input in the shell (do ARCH = arm menuconfig). This always complains about โ€œTerminal opening error: unknownโ€, and with Xcode 4 in the background. Any ideas how I can open an interactive shell in the foreground?

(b) Use arm-none-eabi-gdb as my debugger. This is optional, but will be very neat.

Thank!

+3
source share
1 answer

a) Can you figure out how to start the equivalent of xterm containing the command? Or some IDEs have a flag to run a command in an interactive window. Finally, let's look at how to make any menuconfig-related commands from the command line

b) Depends on whether xcode can use the gdb protocol as a whole. If possible, it is a matter of figuring out the whole procedure for starting the target gdbserver server. If this is not possible, you will need to debug text mode or use a gdb-compatible interface.

0
source

All Articles