X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=drivers%2Finput%2FMakefile;h=1f4dad35b53dcd26892e5586d62781dc17fb0541;hb=5f0ffea4559abe3fc83a6023717658a50b22e66c;hp=2933cb6451daaa3655e042c02d4926daddedb656;hpb=eddc7c46c6030d6eca29ac254c9db98198be572d;p=u-boot diff --git a/drivers/input/Makefile b/drivers/input/Makefile index 2933cb6451..1f4dad35b5 100644 --- a/drivers/input/Makefile +++ b/drivers/input/Makefile @@ -23,11 +23,13 @@ include $(TOPDIR)/config.mk -LIB := $(obj)libinput.a +LIB := $(obj)libinput.o -COBJS-y += i8042.o -COBJS-y += keyboard.o -COBJS-y += pc_keyb.o ps2ser.o ps2mult.o +COBJS-$(CONFIG_I8042_KBD) += i8042.o +ifdef CONFIG_PS2KBD +COBJS-y += keyboard.o pc_keyb.o +COBJS-$(CONFIG_PS2MULT) += ps2mult.o ps2ser.o +endif COBJS := $(COBJS-y) SRCS := $(COBJS:.o=.c) @@ -36,7 +38,7 @@ OBJS := $(addprefix $(obj),$(COBJS)) all: $(LIB) $(LIB): $(obj).depend $(OBJS) - $(AR) $(ARFLAGS) $@ $(OBJS) + $(call cmd_link_o_target, $(OBJS)) #########################################################################