Skip to content

Commit

Permalink
Merge pull request thesofproject#102 from sstancioiu/feature/sstancio…
Browse files Browse the repository at this point in the history
…iu/remove-dirname-error-msg

tools:labs: Add --no-run-if-empty option to xargs
  • Loading branch information
razvand authored Apr 21, 2019
2 parents ba89c3f + 9913cd4 commit 8909edf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/labs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ skels:
skels/Kbuild:
echo "# autogenerated, do not edit " > $@
echo "ccflags-y += -Wno-unused-function -Wno-unused-label -Wno-unused-variable " >> $@
for i in $(shell cd skels && find -mindepth 1 -name Kbuild | xargs dirname); do echo "obj-m += $$i/" >> $@; done
for i in $(shell cd skels && find -mindepth 1 -name Kbuild | xargs --no-run-if-empty dirname); do echo "obj-m += $$i/" >> $@; done

build: $(KCONFIG) skels/Kbuild
$(MAKE) -C $(KDIR) M=$(KDIR)/tools/labs/skels ARCH=$(ARCH) modules
for i in $(shell find skels -name Makefile | xargs dirname); do $(MAKE) -C $$i; done
for i in $(shell find skels -name Makefile | xargs --no-run-if-empty dirname); do $(MAKE) -C $$i; done

TEMPDIR := $(shell mktemp -u)

Expand Down

0 comments on commit 8909edf

Please sign in to comment.