<feed xmlns='http://www.w3.org/2005/Atom'>
<title>opensbi.git/Makefile, branch v0.2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/opensbi.git/atom/Makefile?h=v0.2</id>
<link rel='self' href='http://cgit.235523.xyz/opensbi.git/atom/Makefile?h=v0.2'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/'/>
<updated>2019-02-22T05:58:41Z</updated>
<entry>
<title>Makefile: Rename compile_ld() to compile_elf()</title>
<updated>2019-02-22T05:58:41Z</updated>
<author>
<name>Anup Patel</name>
<email>anup.patel@wdc.com</email>
</author>
<published>2019-02-20T08:46:48Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=889e746fd7be97ca0dbaaf7a6a734429b7ca607f'/>
<id>urn:sha1:889e746fd7be97ca0dbaaf7a6a734429b7ca607f</id>
<content type='text'>
The compile_ld() is actually used to create ELF files so
the name is misleading hence this patch renames it to
compile_elf(). We also rename LDFLAGS to ELFFLAGS because
these will be used for ELF creation only.

Signed-off-by: Anup Patel &lt;anup.patel@wdc.com&gt;
</content>
</entry>
<entry>
<title>Makefile: Use sed instead of awk to parse OpenSBI version</title>
<updated>2019-02-19T08:17:18Z</updated>
<author>
<name>Anup Patel</name>
<email>anup.patel@wdc.com</email>
</author>
<published>2019-02-19T07:45:35Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=6a3dc84f669a560dbb5a396ceda67612551697d6'/>
<id>urn:sha1:6a3dc84f669a560dbb5a396ceda67612551697d6</id>
<content type='text'>
This patch replaces use of awk with sed in top-level makefile
to parse OpenSBI version from include/sbi/sbi_version.h.

Signed-off-by: Anup Patel &lt;anup.patel@wdc.com&gt;
</content>
</entry>
<entry>
<title>Makefile: Fix error evaluating OPENSBI_CC_XLEN</title>
<updated>2019-02-19T08:17:18Z</updated>
<author>
<name>Anup Patel</name>
<email>anup.patel@wdc.com</email>
</author>
<published>2019-02-18T04:10:51Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=f4a17177ce05f74cc33a985868f704d086ac75d5'/>
<id>urn:sha1:f4a17177ce05f74cc33a985868f704d086ac75d5</id>
<content type='text'>
We get following error evaluating OPENSBI_CC_XLEN on
Ubuntu-18.04:
/bin/sh: 1: Bad substitution

This patch fixes above error by using "awk" in string
assigned to OPENSBI_CC_XLEN and it also moves "Setup
compilation commands" before OPENSBI_CC_XLEN.

Signed-off-by: Anup Patel &lt;anup.patel@wdc.com&gt;
</content>
</entry>
<entry>
<title>Makefile: Fix the assignment of OPENSBI_CC_XLEN</title>
<updated>2019-02-17T10:51:18Z</updated>
<author>
<name>Alistair Francis</name>
<email>alistair.francis@wdc.com</email>
</author>
<published>2019-02-15T22:56:53Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=16426420b5d6bbf16c035503dd7d9eabd91e3f04'/>
<id>urn:sha1:16426420b5d6bbf16c035503dd7d9eabd91e3f04</id>
<content type='text'>
Previously OPENSBI_CC_XLEN was not being correctly assigned either 32 or
64. It also was not assigned before config.mk was parsed. Ensure that it
will always be assigned.

Signed-off-by: Alistair Francis &lt;alistair.francis@wdc.com&gt;
</content>
</entry>
<entry>
<title>Makefile: Add 'make run' command for platform specific run</title>
<updated>2019-02-15T10:24:44Z</updated>
<author>
<name>Olof Johansson</name>
<email>olof@lixom.net</email>
</author>
<published>2019-02-15T03:46:47Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=868e20df8b302c20782026a806dda317b76655e9'/>
<id>urn:sha1:868e20df8b302c20782026a806dda317b76655e9</id>
<content type='text'>
Makes for easy and quick build-run one-stop command.

For now only added for qemu targets. It can be added for
any platform having simulator/emulator (such as QEMU).

Signed-off-by: Olof Johansson &lt;olof@lixom.net&gt;
Signed-off-by: Anup Patel &lt;anup.patel@wdc.com&gt;
</content>
</entry>
<entry>
<title>Makefile: Make sure ld is always aware of the target abi/emulation</title>
<updated>2019-02-15T03:25:45Z</updated>
<author>
<name>Nick Kossifidis</name>
<email>mickflemm@gmail.com</email>
</author>
<published>2019-02-14T03:37:13Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=286b80768beb16130f869877875af2f581439b2b'/>
<id>urn:sha1:286b80768beb16130f869877875af2f581439b2b</id>
<content type='text'>
On Makefile merge_objs calls ld without providing any hints
on the target so on a multilib toolchain for example it will
always pick the default one (elf64-littleriscv) which will
then result a failure when compiling on RV32 since the objects
will be 32bits and the target will be 64bits. The same happens
on compile_ld that calls gcc without CFLAGS so it doesn't
get mabi/march.

With this patch OpenSBI compiles on RV32 (PLATFORM_RISCV_XLEN=32),
I tested fw_jump.elf on qemu (but it doesn't boot the kernel yet
-bbl also doesn't boot the kernel so it may be something else).

Signed-off-by: Nick Kossifidis &lt;mickflemm@gmail.com&gt;
</content>
</entry>
<entry>
<title>Makefile: Set ABI, ISA and Code Model in top-level make</title>
<updated>2019-02-12T10:25:15Z</updated>
<author>
<name>Anup Patel</name>
<email>anup.patel@wdc.com</email>
</author>
<published>2019-02-08T07:17:01Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=c5467fce469f0a5da868f1c9f90f9e4e549cb660'/>
<id>urn:sha1:c5467fce469f0a5da868f1c9f90f9e4e549cb660</id>
<content type='text'>
This patch introduces following optional PLATFORM options:
PLATFORM_RISCV_XLEN -&gt; RISC-V register width
PLATFORM_RISCV_ABI -&gt; RISC-V GCC ABI
PLATFORM_RISCV_ISA -&gt; RISC-V GCC ISA string
PLATFORM_RISCV_CODE_MODEL -&gt; RISC-V GCC Code Model

If the above options are not provided by platform config.mk
or by command-line parameters then:
1. PLATFORM_RISCV_XLEN will be determined using toolchain
capability
2. PLATFORM_RISCV_ABI, PLATFORM_RISCV_ISA, and
PLATFORM_RISCV_CODE_MODEL is set to value best suited for
generic libsbi.a

As a result of these optional PLATFORM options, the
platform-cflags-y and platform-asflags-y is further
simplified for platform config.mk.

Signed-off-by: Anup Patel &lt;anup.patel@wdc.com&gt;
</content>
</entry>
<entry>
<title>Makefile: Ensure lgcc is included</title>
<updated>2019-02-08T03:48:46Z</updated>
<author>
<name>Alistair Francis</name>
<email>alistair.francis@wdc.com</email>
</author>
<published>2019-01-23T22:38:21Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=76c759df6ab96cc1418325ecf99a0d62a0f37459'/>
<id>urn:sha1:76c759df6ab96cc1418325ecf99a0d62a0f37459</id>
<content type='text'>
This fixes errors like this:
  undefined reference to `__umoddi3'
when buildilng for 32-bit systems

Signed-off-by: Alistair Francis &lt;alistair.francis@wdc.com&gt;
</content>
</entry>
<entry>
<title>platform/qemu/virt: Dynamically calculate xlen</title>
<updated>2019-02-08T03:48:46Z</updated>
<author>
<name>Alistair Francis</name>
<email>alistair.francis@wdc.com</email>
</author>
<published>2019-01-18T01:33:47Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=5a91fec1a80939e78e37a0b2bc1d3043dcac23f4'/>
<id>urn:sha1:5a91fec1a80939e78e37a0b2bc1d3043dcac23f4</id>
<content type='text'>
The QEMU virt machine can be either 32 or 66 bit. Don't hard code the
CPU bit length and instead let the compiler determine it.

Signed-off-by: Alistair Francis &lt;alistair.francis@wdc.com&gt;
</content>
</entry>
<entry>
<title>Makefile: don't disable built-in variables</title>
<updated>2019-02-06T05:09:17Z</updated>
<author>
<name>Andreas Schwab</name>
<email>schwab@suse.de</email>
</author>
<published>2019-02-04T11:48:26Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=190a80dc4014a1113ea317769b4875893f8e9890'/>
<id>urn:sha1:190a80dc4014a1113ea317769b4875893f8e9890</id>
<content type='text'>
Signed-off-by: Andreas Schwab &lt;schwab@suse.de&gt;
</content>
</entry>
</feed>
