build: Use -ffreestanding
authorKhem Raj <raj.khem@gmail.com>
Tue, 7 Jan 2020 02:41:06 +0000 (18:41 -0800)
committerAnup Patel <anup@brainfault.org>
Wed, 8 Jan 2020 03:40:24 +0000 (09:10 +0530)
commit049ad0b3877352527ab470eba33bc767e9b54961
tree92cd4aca5f2cdcf2c04fc1c2d98d4abb78fb0ae4
parenta67fd68cbf02af84af9e6e7f8e28aadcecc94910
build: Use -ffreestanding

this is a stand-alone/baremetal application, therefore demanding
-ffreestanding would help it compile with hosted toolchains e.g. ( linux
toolchains ), it also ensures that it won't be using platform
optimizations like inlining mem* str* functions which gcc might decide
especially with wrapper string functions in opensbi code

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Reviewed-by: Anup Patel <anup.patel@wdc.com>
Makefile