mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
add initial sparc32 (qemu) support by Blue Swirl
git-svn-id: svn://coreboot.org/openbios/openbios-devel@3 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
78
config/examples/cross-sparc32_rules.xml
Normal file
78
config/examples/cross-sparc32_rules.xml
Normal file
@@ -0,0 +1,78 @@
|
||||
<rules>
|
||||
|
||||
<pre><![CDATA[
|
||||
#
|
||||
# Autogenerated OpenBIOS Makefile
|
||||
# (C) 2004-2006 by the OpenBIOS team
|
||||
#
|
||||
|
||||
ARCH := sparc32
|
||||
ODIR := obj-$(ARCH)
|
||||
HOSTCC := gcc
|
||||
CROSSCFLAGS := -DNATIVE_BITWIDTH_SMALLER_THAN_HOST_BITWIDTH -DSWAP_ENDIANNESS
|
||||
HOSTCFLAGS := -O2 -g -Wall -W -DFCOMPILER -DBOOTSTRAP $(CROSSCFLAGS)
|
||||
HOSTINCLUDES := -Iinclude -Ikernel/include -I$(ODIR)/target/include
|
||||
|
||||
CC := sparc-linux-gcc -Wa,-xarch=v8 -Wa,-32 -m32 -mcpu=supersparc
|
||||
AS := sparc-linux-as -Wa,-xarch=v8 -Wa,-32 -g
|
||||
AR := sparc-linux-ar
|
||||
LD := sparc-linux-ld
|
||||
NM := sparc-linux-nm
|
||||
STRIP := sparc-linux-strip
|
||||
RANLIB := sparc-linux-ranlib
|
||||
CFLAGS := -Os -Wall -W -DNATIVE_BITWIDTH_EQUALS_HOST_BITWIDTH -USWAP_ENDIANNESS -fno-builtin -g
|
||||
INCLUDES := -Iinclude -Ikernel/include -I$(ODIR)/target/include
|
||||
|
||||
#
|
||||
# pre rules
|
||||
#
|
||||
|
||||
all: versions dictionaries host-libraries target-libraries host-executables target-executables
|
||||
|
||||
VERSION := "1.0RC1"
|
||||
|
||||
versions: $(ODIR)/target/include/openbios-version.h $(ODIR)/forth/version.fs
|
||||
|
||||
$(ODIR)/forth/version.fs:
|
||||
@DATE="$(shell echo `date +'%b %e %Y %H:%M'`)" ; \
|
||||
( echo ": builddate \" $$DATE\" ; " ; \
|
||||
echo ": version \" $(VERSION)\" ; " ; ) \
|
||||
> $(dir $@)/version.fs
|
||||
|
||||
$(ODIR)/target/include/openbios-version.h:
|
||||
@DATE="$(shell echo `date +'%b %e %Y %H:%M'`)" ; \
|
||||
( echo "#define OPENBIOS_BUILD_DATE \"$$DATE\"" ; \
|
||||
echo "#define OPENBIOS_VERSION_STR \"$(VERSION)\"" ; \
|
||||
echo "#define OPENBIOS_RELEASE \"$(VERSION)\"" ; ) \
|
||||
> $(dir $@)/openbios-version.h
|
||||
]]></pre>
|
||||
|
||||
<!-- host compiler build rules -->
|
||||
|
||||
<rule target="host" entity="executable">
|
||||
$(HOSTCC) $(HOSTCFLAGS) -o $@ $^
|
||||
</rule>
|
||||
|
||||
<rule target="host" entity="object">
|
||||
$(HOSTCC) $(HOSTCFLAGS) $(HOSTINCLUDES) -c -o $@ $^
|
||||
</rule>
|
||||
|
||||
<rule target="host" entity="library">
|
||||
$(AR) cru $@ $^; $(RANLIB) $@
|
||||
</rule>
|
||||
|
||||
<!-- target/cross compiler build rules -->
|
||||
|
||||
<rule target="target" entity="executable">
|
||||
$(CC) $(CFLAGS) -o $@ $^
|
||||
</rule>
|
||||
|
||||
<rule target="target" entity="object">
|
||||
$(CC) $$EXTRACFLAGS $(CFLAGS) $(INCLUDES) -c -o $@ $^
|
||||
</rule>
|
||||
|
||||
<rule target="target" entity="library">
|
||||
$(AR) cru $@ $^; $(RANLIB) $@
|
||||
</rule>
|
||||
|
||||
</rules>
|
||||
Reference in New Issue
Block a user