diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-05-06 09:30:53 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-05-06 09:30:53 +0200 |
commit | e9a39d79b9c57dfe0e5736de9ed192cc6273a56b (patch) | |
tree | 132361cf5ce74f2438111732e33dcc712b8edf99 /Makefile | |
parent | c19efab88606a974c050aa6caa9ec1803f88bdc9 (diff) | |
parent | 90c94f4483c7846f6be9f51a1ce5f054a3a9ca5d (diff) | |
download | barebox-e9a39d79b9c57dfe0e5736de9ed192cc6273a56b.tar.gz barebox-e9a39d79b9c57dfe0e5736de9ed192cc6273a56b.tar.xz |
Merge branch 'for-next/remove-config-h'
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 18 |
1 files changed, 12 insertions, 6 deletions
@@ -838,13 +838,19 @@ include/asm: $(Q)$(check-symlink) $(Q)$(create-symlink) +define symlink-config-h + if [ -f $(srctree)/$(BOARD)/config.h ]; then \ + $(kecho) ' SYMLINK $@ -> $(BOARD)/config.h'; \ + ln -fsn $(srctree)/$(BOARD)/config.h $@; \ + else \ + [ -h $@ ] && rm -f $@; \ + $(kecho) ' CREATE $@'; \ + touch -a $@; \ + fi +endef + include/config.h: include/config/auto.conf - $(Q)$(kecho) ' SYMLINK $@ -> $(BOARD)/config.h' -ifneq ($(KBUILD_SRC),) - $(Q)ln -fsn $(srctree)/$(BOARD)/config.h $@ -else - $(Q)ln -fsn ../$(BOARD)/config.h $@ -endif + $(Q)$(symlink-config-h) # Generate some files # --------------------------------------------------------------------------- |