• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

build


Commit MetaInfo

Revisionf2dda303b01f251a6100beaeb0e0e734270e78be (tree)
Time2018-04-27 15:50:23
AuthorChih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

kernel.mk: fix bison unable to find m4 file issue

Android builds a version of bison which is unusable outside the tree.
Since the bison is invoked in the KBUILD_OUTPUT dir, the error is
generated:

bison: external/bison/data/m4sugar/m4sugar.m4: cannot open: No such file or directory

To workaround it, add a symlink to the external dir so that bison can
get the expected m4 file.

Change Summary

Incremental Difference

--- a/core/tasks/kernel.mk
+++ b/core/tasks/kernel.mk
@@ -45,6 +45,7 @@ KERNEL_DOTCONFIG_FILE := $(KBUILD_OUTPUT)/.config
4545 KERNEL_ARCH_CHANGED := $(if $(filter 0,$(shell grep -s ^$(if $(filter x86,$(TARGET_KERNEL_ARCH)),\#.)CONFIG_64BIT $(KERNEL_DOTCONFIG_FILE) | wc -l)),FORCE)
4646 $(KERNEL_DOTCONFIG_FILE): $(KERNEL_CONFIG_FILE) $(wildcard $(TARGET_KERNEL_DIFFCONFIG)) $(KERNEL_ARCH_CHANGED)
4747 $(hide) mkdir -p $(@D) && cat $(wildcard $^) > $@
48+ $(hide) ln -sf ../../../../../../external $(@D)
4849 $(mk_kernel) oldnoconfig
4950
5051 # bison is needed to build kernel and external modules from source