CMake: Zynq: generic: update to use xil,metal lib
authorWendy Liang <jliang@xilinx.com>
Tue, 16 Aug 2016 05:24:17 +0000 (22:24 -0700)
committerWendy Liang <jliang@xilinx.com>
Thu, 13 Oct 2016 05:01:49 +0000 (22:01 -0700)
Default Zynq generic CMake toolchain file is updated to use libxil and
libmetal libraries.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
cmake/platforms/zynq7_generic.cmake

index d2f17b6a5286790a994968ad02200b4fc8f7105b..60b7eab6ff523a0c46406573883768edfbf7afde 100644 (file)
@@ -1,10 +1,7 @@
 set (CMAKE_SYSTEM_PROCESSOR "arm" CACHE STRING "")
 set (MACHINE                "zynq7" CACHE STRING "")
-set (CROSS_PREFIX           "arm-xilinx-eabi-" CACHE STRING "")
-set (CMAKE_C_FLAGS          "-gdwarf-2 -mthumb-interwork -mcpu=cortex-a9 -ffunction-sections -fdata-sections" CACHE STRING "")
-set (CMAKE_ASM_FLAGS        "-gdwarf-2 -mthumb-interwork -mcpu=cortex-a9" CACHE STRING "")
-set (PLATFORM_LIB_DEPS      "-lbaremetal -lc -lm -lcs3 -lcs3arm -lcs3unhosted" CACHE STRING "")
-set (APP_EXTRA_C_FLAGS      "-DZYNQ7_BAREMETAL" CACHE STRING "")
+set (CROSS_PREFIX           "arm-none-eabi-" CACHE STRING "")
+set (CMAKE_C_FLAGS          "-mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -Os" CACHE STRING "")
 
 include (cross_generic_gcc)