openbcm

Git mirror of https://github.com/Broadcom-Network-Switching-Software/OpenBCM
git clone git://git.finwo.net/mirror/broadcom/openbcm
Log | Files | Refs | README

Makefile (604B)


      1 #
      2 # This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
      3 # 
      4 # Copyright 2007-2019 Broadcom Inc. All rights reserved.
      5 #
      6 ifeq (${SDK},)
      7 # {
      8 $(error environment variable SDK not set)
      9 # }
     10 endif
     11 
     12 INCDIR	= -I${SDK}/include
     13 
     14 all:
     15 	arm-linux-gcc -O1 -g ${INCDIR} -mthumb -mcpu=cortex-m0 -c -o custom_led.o custom_led.c
     16 	arm-linux-ld -T custom_led.lds -Bstatic -nostdlib --entry 0 -EL -Map custom_led.map -o custom_led.elf custom_led.o
     17 	arm-linux-objcopy -O binary custom_led.elf custom_led.bin
     18 
     19 clean:
     20 	rm -rf *.elf *.o *.map *.bin
     21