Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6e530cb

Browse files
committed
lkl: fix autoconf filename as this will be public and installed
Signed-off-by: Hajime Tazaki <[email protected]>
1 parent d9862fa commit 6e530cb

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

tools/lkl/Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ $(OUTPUT)cpfromfs$(EXESUF): cptofs$(EXESUF)
8787
clean:
8888
$(call QUIET_CLEAN, objects)find $(OUTPUT) -name '*.o' -delete -o -name '\.*.cmd'\
8989
-delete -o -name '\.*.d' -delete
90-
$(call QUIET_CLEAN, headers)$(RM) -r $(OUTPUT)/include/lkl/
90+
$(call QUIET_CLEAN, headers)$(RM) -r $(OUTPUT)/include/lkl/ \
91+
$(OUTPUT)include/lkl_autoconf.h
9192
$(call QUIET_CLEAN, liblkl.a)$(RM) $(OUTPUT)/liblkl.a
9293
$(call QUIET_CLEAN, targets)$(RM) $(TARGETS) bin/stat
9394

@@ -97,7 +98,8 @@ clean-conf: clean
9798
headers_install: $(TARGETS)
9899
$(call QUIET_INSTALL, headers) \
99100
install -d $(DESTDIR)$(PREFIX)/include ; \
100-
install -m 644 include/lkl.h include/lkl_host.h $(DESTDIR)$(PREFIX)/include ; \
101+
install -m 644 include/lkl.h include/lkl_host.h $(OUTPUT)include/lkl_autoconf.h \
102+
$(DESTDIR)$(PREFIX)/include ; \
101103
cp -r $(OUTPUT)include/lkl $(DESTDIR)$(PREFIX)/include
102104

103105
libraries_install: $(libs-y:%=$(OUTPUT)%$(SOSUF))

tools/lkl/Makefile.autoconf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ NT_HOSTS=pe-i386 pe-x86-64
33

44
define set_autoconf_var
55
$(shell echo "#define LKL_HOST_CONFIG_$(1) $(2)" \
6-
>> $(OUTPUT)/include/autoconf.h)
6+
>> $(OUTPUT)/include/lkl_autoconf.h)
77
$(shell echo "LKL_HOST_CONFIG_$(1)=$(2)" >> $(OUTPUT)/tests/autoconf.sh)
88
export LKL_HOST_CONFIG_$(1)=$(2)
99
endef
@@ -98,6 +98,6 @@ export do_autoconf
9898
$(OUTPUT)Makefile.conf: Makefile.autoconf
9999
$(shell mkdir -p $(OUTPUT)/include)
100100
$(shell mkdir -p $(OUTPUT)/tests)
101-
$(shell echo -n "" > $(OUTPUT)/include/autoconf.h)
101+
$(shell echo -n "" > $(OUTPUT)/include/lkl_autoconf.h)
102102
$(shell echo -n "" > $(OUTPUT)/tests/autoconf.sh)
103103
@echo "$$do_autoconf" > $(OUTPUT)/Makefile.conf

tools/lkl/include/lkl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef _LKL_H
22
#define _LKL_H
33

4-
#include "autoconf.h"
4+
#include "lkl_autoconf.h"
55

66
#ifdef __cplusplus
77
extern "C" {

0 commit comments

Comments
 (0)