diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2018-02-12 14:10:32 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2018-02-14 20:44:30 -0600 |
commit | 6d965ea72ad85ff23059e0d7ff657070be67dbdc (patch) | |
tree | beb8c66a9b35dc726891108d02107fc80650b54b | |
parent | 44d352ed6bd06a9d9aa5dffc2caa682d5d124e66 (diff) | |
download | skiboot-6d965ea72ad85ff23059e0d7ff657070be67dbdc.zip skiboot-6d965ea72ad85ff23059e0d7ff657070be67dbdc.tar.gz skiboot-6d965ea72ad85ff23059e0d7ff657070be67dbdc.tar.bz2 |
pflash: Fix makefile dependency issue
Otherwise we could end up trying to build files before the links
are created.
Let's use a heavy handed approach and not build *anything* until
we have the links.
Reported-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
-rw-r--r-- | external/pflash/rules.mk | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/external/pflash/rules.mk b/external/pflash/rules.mk index 9dff002..3ee82b5 100644 --- a/external/pflash/rules.mk +++ b/external/pflash/rules.mk @@ -37,17 +37,17 @@ version.c: .version echo "const char version[] = \"$(PFLASH_VERSION)\";" ;\ fi) > $@ -%.o : %.c +%.o : %.c | links $(Q_CC)$(CC) $(CFLAGS) -c $< -o $@ $(LIBFLASH_SRC): | links $(CCAN_SRC): | links -$(LIBFLASH_OBJS): libflash-%.o : libflash/%.c +$(LIBFLASH_OBJS): libflash-%.o : libflash/%.c | links $(Q_CC)$(CC) $(CFLAGS) -c $< -o $@ -$(CCAN_OBJS): ccan-list-%.o: ccan/list/%.c +$(CCAN_OBJS): ccan-list-%.o: ccan/list/%.c | links $(Q_CC)$(CC) $(CFLAGS) -c $< -o $@ $(EXE): $(OBJS) |