Commit 69efbe6f authored by Jeroen Vreeken's avatar Jeroen Vreeken
Browse files

Add am335x blocks to dt_ctrl list

parent f61897ae
BLOCK_TARGETS := $(LIBDIR)/libam335x.la
AM335X_TARGETS := $(LIBDIR)/libam335x.la
BLOCK_SRCS := \
$(DIR)/block_am335x_adc.c \
$(DIR)/block_am335x_pwm.c \
$(DIR)/block_am335x_qed.c
AM335X_BLOCKS := \
am335x_adc \
am335x_pwm \
am335x_qed
BLOCK_OBJS := $(BLOCK_SRCS:.c=.lo)
AM335X_SRCS += $(addsuffix .c,$(addprefix $(DIR)/block_,$(AM335X_BLOCKS)))
$(BLOCK_OBJS): CFLAGS += -O3 -Wall
CTRL_BLOCKS += $(AM335X_BLOCKS)
CTRL_BLOCK_LIBS += libam335x.la
AM335X_OBJS := $(AM335X_SRCS:.c=.lo)
$(AM335X_OBJS): CFLAGS += -O3 -Wall
$(LIBDIR)/libam335x.la_LDFLAGS +=
$(LIBDIR)/libam335x.la: $(BLOCK_OBJS)
$(LIBDIR)/libam335x.la: $(AM335X_OBJS)
$(LIB_LINK)
TARGETS += $(BLOCK_TARGETS)
CLEAN += $(BLOCK_TARGETS) $(BLOCK_OBJS)
SRCS += $(BLOCK_SRCS)
TARGETS += $(AM335X_TARGETS)
CLEAN += $(AM335X_TARGETS) $(AM335X_OBJS)
SRCS += $(AM335X_SRCS)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment