Skip to content

Commit

Permalink
hal: Allow to set used PLO_DEVICES from outside
Browse files Browse the repository at this point in the history
  • Loading branch information
anglov committed Mar 26, 2024
1 parent e6b7057 commit 7e56b51
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions hal/armv7m/stm32/l4/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ CFLAGS += -mfloat-abi=soft
PLO_COMMANDS ?= alias app bankswitch call console copy dump echo go help kernelimg map mem mpu \
phfs reboot script wait

#include devices/pipe-rtt/Makefile
include devices/uart-stm32l4x6/Makefile
include devices/flash-stm32/Makefile
include devices/ram-storage/Makefile
PLO_ALLDEVICES := uart-stm32l4x6 flash-stm32 ram-storage # pipe-rtt
PLO_DEVICES ?= $(PLO_ALLDEVICES)

PLO_USED_DEVS = $(filter $(PLO_ALLDEVICES), $(PLO_DEVICES))

include $(foreach dev, $(PLO_USED_DEVS), devices/$(dev)/Makefile)

OBJS += $(addprefix $(PREFIX_O)hal/$(TARGET_SUFF)/stm32/l4/, _init.o stm32l4.o timer.o console.o)

0 comments on commit 7e56b51

Please sign in to comment.