]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ctf: ensure the CTF directory exists before writing the filelist
authorNick Alcock <nick.alcock@oracle.com>
Thu, 29 Aug 2013 15:27:29 +0000 (16:27 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Tue, 21 Jul 2015 14:29:10 +0000 (15:29 +0100)
If the CTF directory does not yet exist, we must create it before writing
the filelist into it.

Orabug: 17363469
Signed-off-by: Nick Alcock <nick.alcock@oracle.com>
scripts/Makefile.modpost

index cd6001ad57d47fe9ca44c05af98400d289100ee6..bab3c7f292d61ca9aa5e064dfb5c16a4ce9d1184 100644 (file)
@@ -184,6 +184,7 @@ endef
 
 $(ctf-filelist): $(builtins) $(modules:.ko=.o)
        @rm -f $(ctf-filelist);
+       @mkdir -p $(ctf-dir);
        $(call add-ctf-filelists-cmd,$^)
 
 # We depend upon a stamp file in lieu of the builtin modules' CTF files, because