Commit ed1353d74b9ce8a7fcd660570b848a184d614b5f
1 parent
4a43719a77
Exists in
master
and in
54 other branches
[BUILD] conditionally compile libfdt/*.c in libfdt/Makefile
Modify libfdt/Makefile to conditionally compile the *.c files based on the board config. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Showing 7 changed files with 1 additions and 31 deletions Side-by-side Diff
libfdt/Makefile
libfdt/fdt.c
... | ... | @@ -16,9 +16,6 @@ |
16 | 16 | * License along with this library; if not, write to the Free Software |
17 | 17 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
18 | 18 | */ |
19 | -#include "config.h" | |
20 | -#if CONFIG_OF_LIBFDT | |
21 | - | |
22 | 19 | #include "libfdt_env.h" |
23 | 20 | |
24 | 21 | #include <fdt.h> |
... | ... | @@ -86,6 +83,4 @@ |
86 | 83 | memmove(buf, fdt, fdt_totalsize(fdt)); |
87 | 84 | return 0; |
88 | 85 | } |
89 | - | |
90 | -#endif /* CONFIG_OF_LIBFDT */ |
libfdt/fdt_ro.c
... | ... | @@ -16,9 +16,6 @@ |
16 | 16 | * License along with this library; if not, write to the Free Software |
17 | 17 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
18 | 18 | */ |
19 | -#include "config.h" | |
20 | -#if CONFIG_OF_LIBFDT | |
21 | - | |
22 | 19 | #include "libfdt_env.h" |
23 | 20 | |
24 | 21 | #include <fdt.h> |
... | ... | @@ -532,6 +529,4 @@ |
532 | 529 | } |
533 | 530 | return 0; |
534 | 531 | } |
535 | - | |
536 | -#endif /* CONFIG_OF_LIBFDT */ |
libfdt/fdt_rw.c
... | ... | @@ -16,9 +16,6 @@ |
16 | 16 | * License along with this library; if not, write to the Free Software |
17 | 17 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
18 | 18 | */ |
19 | -#include "config.h" | |
20 | -#if CONFIG_OF_LIBFDT | |
21 | - | |
22 | 19 | #include "libfdt_env.h" |
23 | 20 | |
24 | 21 | #include <fdt.h> |
... | ... | @@ -320,6 +317,4 @@ |
320 | 317 | fdt_set_header(fdt, totalsize, _blob_data_size(fdt)); |
321 | 318 | return 0; |
322 | 319 | } |
323 | - | |
324 | -#endif /* CONFIG_OF_LIBFDT */ |
libfdt/fdt_strerror.c
... | ... | @@ -16,9 +16,6 @@ |
16 | 16 | * License along with this library; if not, write to the Free Software |
17 | 17 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
18 | 18 | */ |
19 | -#include "config.h" | |
20 | -#if CONFIG_OF_LIBFDT | |
21 | - | |
22 | 19 | #include "libfdt_env.h" |
23 | 20 | |
24 | 21 | #include <fdt.h> |
... | ... | @@ -65,6 +62,4 @@ |
65 | 62 | |
66 | 63 | return "<unknown error>"; |
67 | 64 | } |
68 | - | |
69 | -#endif /* CONFIG_OF_LIBFDT */ |
libfdt/fdt_sw.c
... | ... | @@ -16,9 +16,6 @@ |
16 | 16 | * License along with this library; if not, write to the Free Software |
17 | 17 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
18 | 18 | */ |
19 | -#include "config.h" | |
20 | -#if CONFIG_OF_LIBFDT | |
21 | - | |
22 | 19 | #include "libfdt_env.h" |
23 | 20 | |
24 | 21 | #include <fdt.h> |
... | ... | @@ -227,6 +224,4 @@ |
227 | 224 | fdt_set_header(fdt, magic, FDT_MAGIC); |
228 | 225 | return 0; |
229 | 226 | } |
230 | - | |
231 | -#endif /* CONFIG_OF_LIBFDT */ |
libfdt/fdt_wip.c
... | ... | @@ -16,9 +16,6 @@ |
16 | 16 | * License along with this library; if not, write to the Free Software |
17 | 17 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
18 | 18 | */ |
19 | -#include "config.h" | |
20 | -#if CONFIG_OF_LIBFDT | |
21 | - | |
22 | 19 | #include "libfdt_env.h" |
23 | 20 | |
24 | 21 | #include <fdt.h> |
... | ... | @@ -138,6 +135,4 @@ |
138 | 135 | |
139 | 136 | return 0; |
140 | 137 | } |
141 | - | |
142 | -#endif /* CONFIG_OF_LIBFDT */ |