]> git.baikalelectronics.ru Git - kernel.git/commit
selinux: really fix dependency causing parallel compile failure.
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 16 Sep 2010 00:14:53 +0000 (20:14 -0400)
committerJames Morris <jmorris@namei.org>
Wed, 20 Oct 2010 23:12:39 +0000 (10:12 +1100)
commit9bd71c2895ab3ee766b0f8f2ea8399fe9f6bda1d
tree9441606f03330f1e2951ff0613d8059f90a353ec
parent055bd636054a1d2efd5475f57bbf501a9087f31c
selinux: really fix dependency causing parallel compile failure.

While the previous change to the selinux Makefile reduced the window
significantly for this failure, it is still possible to see a compile
failure where cpp starts processing selinux files before the auto
generated flask.h file is completed.  This is easily reproduced by
adding the following temporary change to expose the issue everytime:

-      cmd_flask = scripts/selinux/genheaders/genheaders ...
+      cmd_flask = sleep 30 ; scripts/selinux/genheaders/genheaders ...

This failure happens because the creation of the object files in the ss
subdir also depends on flask.h.  So simply incorporate them into the
parent Makefile, as the ss/Makefile really doesn't do anything unique.

With this change, compiling of all selinux files is dependent on
completion of the header file generation, and this test case with
the "sleep 30" now confirms it is functioning as expected.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: James Morris <jmorris@namei.org>
security/selinux/Makefile
security/selinux/ss/Makefile [deleted file]