Skip to content

Commit

Permalink
Merge pull request torvalds#440 from libos-nuse/feature-custom-make-c…
Browse files Browse the repository at this point in the history
…onfig

lkl-upstream: allow specify custom config name to make
  • Loading branch information
thehajime authored Jun 12, 2018
2 parents 593eb62 + dff35a6 commit ba78f51
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions arch/lkl/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ config LKL
select HAVE_UNDERSCORE_SYMBOL_PREFIX if OUTPUT_FORMAT = "pe-i386"
select 64BIT if OUTPUT_FORMAT = "elf64-x86-64-freebsd"
select 64BIT if OUTPUT_FORMAT = "elf64-littleaarch64"
select NET
select MULTIUSER
select INET
select IPV6
select IP_PNP
select IP_PNP_DHCP
select TCP_CONG_ADVANCED
Expand Down
4 changes: 3 additions & 1 deletion tools/lkl/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
.SUFFIXES:
MAKEFLAGS += -r --no-print-directory

KCONFIG?=defconfig

ifneq ($(silent),1)
ifneq ($(V),1)
QUIET_AUTOCONF = @echo ' AUTOCONF '$@;
Expand Down Expand Up @@ -59,7 +61,7 @@ endif

# rule to build lkl.o
$(OUTPUT)lib/lkl.o: bin/stat
$(Q)$(MAKE) -C ../.. ARCH=lkl $(KOPT) defconfig
$(Q)$(MAKE) -C ../.. ARCH=lkl $(KOPT) $(KCONFIG)
# this workaround is for arm32 linker (ld.gold)
$(Q)export PATH=$(srctree)/tools/lkl/bin/:${PATH} ;\
$(MAKE) -C ../.. ARCH=lkl $(KOPT) install INSTALL_PATH=$(OUTPUT)
Expand Down

0 comments on commit ba78f51

Please sign in to comment.