vmod/vmodttl: fixed bug related to luns not ordered and/or not starting from zero.
[ht-drivers.git] / utils / driver / Kbuild
blob8de932e1716f0e91f0890684058c6a6aa49aa244
1 # Include generic definitions
2 include $(ROOTDIR)/makefiles/Kbuild.include
4 # Driver utility files
5 utils-y := $(OBJFILES)
7 # Shipped driver utils objects
8 shipped-utils := $(addsuffix _shipped, $(addprefix $(CPU)/$(KVER)/,$(utils-y)))
10 # That's what we'll do
11 always := outdir $(utils-y) $(shipped-utils)
13 # All compiled files goes here
14 $(obj)/outdir:
15         @mkdir -p $(obj)/$(CPU)/$(KVER)
17 # Shipping driver utility objects
18 quiet_cmd_ship_utils = SHIPPING $<
19       cmd_ship_utils = mv $< $@
21 # Tell Makefile HOWTO ship them
22 $(addprefix $(obj)/,$(shipped-utils)): $(obj)/$(CPU)/$(KVER)/%.o_shipped: $(obj)/%.o
23         $(call cmd,ship_utils)