1 cmake_minimum_required(VERSION 3.5)
5 include("../extra/sh-elf-linux.cmake")
6 include("../config.cmake")
8 set(miniboot_src miniboot.S)
9 set_source_files_properties(miniboot.S PROPERTIES LANGUAGE C)
11 add_executable(miniboot.elf miniboot.S)
13 set_target_properties(miniboot.elf PROPERTIES LINKER_LANGUAGE C)
15 set_target_properties(miniboot.elf PROPERTIES LINK_FLAGS "-Tminiboot.lds")
19 ${OBJCOPY} --strip-unneeded -O binary -R .sram -R .eeprom -R .fwdsc miniboot.elf miniboot.fw
21 BYPRODUCTS miniboot.fw)