]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commit
Makefile: fix kernel modules test
authorPeter Korsgaard <jacmet@sunsite.dk>
Sun, 25 Aug 2013 22:34:45 +0000 (00:34 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sun, 25 Aug 2013 22:34:45 +0000 (00:34 +0200)
commitf627ebeb79930e00b25eb376554ff2b68cd077c5
tree47e61983650c87eca21ebecaaa3e873f220af861
parentfde2605765fd99565ebcde48c5411a69646c2cce
Makefile: fix kernel modules test

Commit fde2605765f (Makefile: test before search for kernel modules)
changed the way we strip kernel modules, but it fails when modules aren't
available (as test -d returns with a non zero exit code).

Fix it by including the test -d call in a proper shell conditional.

Reported-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Makefile