diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2019-05-10 11:57:19 +1000 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2019-05-10 11:57:19 +1000 |
commit | 243176c4ce84256913fcf8f99ffbdd82ff6c7593 (patch) | |
tree | 494151a92fd25e4662ce5b685a26188a68f7b3de | |
parent | ce01b21098a48da11c5c6d39ba288f17a91c17f4 (diff) | |
download | device-tree-compiler-243176c4ce84256913fcf8f99ffbdd82ff6c7593.tar.gz |
Fix bogus error on rebuild
Currently if a file is touched requiring libfdt.so rebuild, it will fail
because the ln -s command will attempt to replace an already existing link
an error. Correct this by using ln -sf.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -199,7 +199,7 @@ $(LIBFDT_lib): $(addprefix $(LIBFDT_dir)/,$(LIBFDT_OBJS)) $(LIBFDT_version) @$(VECHO) LD $@ $(CC) $(LDFLAGS) $(SHAREDLIB_LDFLAGS)$(LIBFDT_soname) -o $(LIBFDT_lib) \ $(addprefix $(LIBFDT_dir)/,$(LIBFDT_OBJS)) - ln -s $(LIBFDT_LIB) $(LIBFDT_dir)/$(LIBFDT_soname) + ln -sf $(LIBFDT_LIB) $(LIBFDT_dir)/$(LIBFDT_soname) ifneq ($(DEPTARGETS),) -include $(LIBFDT_OBJS:%.o=$(LIBFDT_dir)/%.d) |