Back to home page

LXR

 
 

    


Warning, /spec/build/bsps/powerpc/motorola_powerpc/qemufakerom.yml is written in an unsupported language. File is not indexed.

0001 SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
0002 build-type: script
0003 copyrights:
0004 - Copyright (C) 2020 embedded brains GmbH & Co. KG
0005 do-build: |
0006   def cc(self, bld, bic, flags, source):
0007       root, ext = os.path.splitext(source)
0008       target = root + ".o"
0009       bld(
0010           features="asm c",
0011           includes=bic.includes,
0012           rule="${CC} ${CPPFLAGS} " + flags + " ${DEFINES_ST:DEFINES} ${CPPPATH_ST:INCPATHS} -c ${SRC} -o ${TGT}",
0013           source=source,
0014           target=target,
0015       )
0016       return target
0017   fakerom_o = cc(self, bld, bic, "-DASM", "bsps/powerpc/motorola_powerpc/bootloader/qemu_fakerom.S")
0018   fakeres_o = cc(self, bld, bic, "", "bsps/powerpc/motorola_powerpc/bootloader/qemu_fakeres.c")
0019   rule = "${LD} -o ${TGT} ${SRC} -nostdlib -Ttext 0xfff00000 --section-start=.romentry=0xfffffffc"
0020   elf = "qemu_fakerom.elf"
0021   bld(
0022       rule=rule,
0023       source=[fakerom_o, fakeres_o],
0024       target=elf,
0025   )
0026   bin = "qemu_fakerom.bin"
0027   bld(
0028       rule=rule + " --oformat binary",
0029       source=[fakerom_o, fakeres_o],
0030       target=bin,
0031   )
0032   bld.install_files("${BSP_LIBDIR}", [fakerom_o, elf, bin])
0033 do-configure: null
0034 enabled-by: true
0035 links: []
0036 prepare-build: null
0037 prepare-configure: null
0038 type: build