summaryrefslogtreecommitdiffstats
path: root/Makefile.main
Commit message (Collapse)AuthorAgeFilesLines
* Fix gitid generation when not in a git repositoryJoel Stanley2014-08-131-1/+3
| | | | | | | | | | | | | If skiboot doesn't live in a git repository, the makefile will go searching up the directory tree for one. To save confusion, only look in the source tree for the git repository. The gitid can be overridden by passing GIT_SHA=foo as an argument to make. This is useful for doing builds outside of a git tree, as buildroot does. Signed-off-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
* Pretty print objcopy in build outputJoel Stanley2014-08-081-1/+1
| | | | | | | | | | | | | | | | | | | | The objcopy call was the odd one out in our build output. Before: [LD] hw/built-in.o [LD] skiboot.elf powerpc-linux-gnu-objcopy -O binary -S skiboot.elf skiboot.lid [NM] skiboot.map After: [LD] hw/built-in.o [LD] skiboot.elf [OBJCOPY] skiboot.lid [NM] skiboot.map Signed-off-by: Joel Stanley <joel@jms.id.au> Reviewed-by: Stewart Smith <stewart@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
* Build with -ffreestanding so we can override printfStewart Smith2014-08-081-3/+3
| | | | | | | | | | | | | | | | | It turns out that GCC will use a builtin printf implementation that directly wraps vfprintf (or something), so when I tried to do my neat trick of overriding printf() with a call to vprlog() adding the timebase and default log level to the log message, it wouldn't work as GCC was being helpful. This change to compiler options will mean that other places where GCC is being helpful and using builtins rather than our implementations will go away, potentially helping/hurting us. We probably want to build with -ffreestanding anyway though. Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
* Initial commit of Open Source releaseBenjamin Herrenschmidt2014-07-021-0/+154
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
OpenPOWER on IntegriCloud