Commit 7acdf556 authored by Sam Ravnborg's avatar Sam Ravnborg

kbuild: Nice output when generating PCI device list

parent e9eedc90
......@@ -39,16 +39,17 @@ endif
host-progs := gen-devlist
# Files generated that shall be removed upon make clean
clean-files := devlist.h classlist.h
# Dependencies on generated files need to be listed explicitly
$(obj)/names.o: $(obj)/devlist.h $(obj)/classlist.h
$(obj)/classlist.h: $(obj)/devlist.h
# And that's how to generate them
quiet_cmd_devlist = DEVLIST $@
cmd_devlist = ( cd $(obj); ./gen-devlist ) < $<
$(obj)/devlist.h: $(src)/pci.ids $(obj)/gen-devlist
( cd $(obj); ./gen-devlist ) < $<
$(call cmd,devlist)
# Files generated that shall be removed upon make clean
clean-files := devlist.h classlist.h
$(obj)/classlist.h: $(obj)/devlist.h
Markdown is supported
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