wireless: align some HE capabilities with the spec
[carl9170fw.git] / minifw / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.8)
2
3 project(miniboot.fw)
4
5 include("../extra/sh-elf-linux.cmake")
6 include("../config.cmake")
7
8 set(miniboot_src miniboot.S)
9 set_source_files_properties(miniboot.S PROPERTIES LANGUAGE C)
10
11 add_executable(miniboot.elf miniboot.S)
12
13 set_target_properties(miniboot.elf PROPERTIES LINKER_LANGUAGE C)
14
15 set_target_properties(miniboot.elf PROPERTIES LINK_FLAGS "-Tminiboot.lds")
16
17 add_custom_target(
18         miniboot.fw ALL
19         ${OBJCOPY} --strip-unneeded -O binary -R .sram -R .eeprom -R .fwdsc miniboot.elf miniboot.fw
20         DEPENDS miniboot.elf
21         BYPRODUCTS miniboot.fw)