Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
build
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
le
kernel
build
Commits
67f058ce
Commit
67f058ce
authored
3 years ago
by
Linux Build Service Account
Browse files
Options
Downloads
Plain Diff
Merge
d330f87d
on remote branch
Change-Id: I8c3526134c5242884f2eb0049e1aad9bdf3ac82e
parents
5e58249b
d330f87d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
kernel_definitions.mk
+10
-2
10 additions, 2 deletions
kernel_definitions.mk
with
10 additions
and
2 deletions
kernel_definitions.mk
+
10
−
2
View file @
67f058ce
...
...
@@ -23,6 +23,11 @@ TARGET_KERNEL_MAKE_ENV += CONFIG_BUILD_ARM64_DT_OVERLAY=y
TARGET_KERNEL_MAKE_ENV
+=
HOSTCC
=
$(
SOURCE_ROOT
)
/
$(
SOONG_LLVM_PREBUILTS_PATH
)
/clang
TARGET_KERNEL_MAKE_ENV
+=
HOSTAR
=
$(
SOURCE_ROOT
)
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/bin/x86_64-linux-ar
TARGET_KERNEL_MAKE_ENV
+=
HOSTLD
=
$(
SOURCE_ROOT
)
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/bin/x86_64-linux-ld
# Pass M4, LEX, and YACC via TARGET_KERNEL_MAKE_ENV to prevent build errors due
# to android build system's restriction against using path tools.
TARGET_KERNEL_MAKE_ENV
+=
M4
=
$(
SOURCE_ROOT
)
/prebuilts/build-tools/linux-x86/bin/m4
TARGET_KERNEL_MAKE_ENV
+=
LEX
=
$(
SOURCE_ROOT
)
/prebuilts/build-tools/linux-x86/bin/flex
TARGET_KERNEL_MAKE_ENV
+=
YACC
=
$(
SOURCE_ROOT
)
/prebuilts/build-tools/linux-x86/bin/bison
TARGET_KERNEL_MAKE_CFLAGS
=
"-I
$(
SOURCE_ROOT
)
/
$(
TARGET_KERNEL_SOURCE
)
/include/uapi -I/usr/include -I/usr/include/x86_64-linux-gnu -I
$(
SOURCE_ROOT
)
/
$(
TARGET_KERNEL_SOURCE
)
/include -L/usr/lib -L/usr/lib/x86_64-linux-gnu -fuse-ld=lld"
TARGET_KERNEL_MAKE_LDFLAGS
=
"-L/usr/lib -L/usr/lib/x86_64-linux-gnu -fuse-ld=lld"
...
...
@@ -121,6 +126,11 @@ KERNEL_USR_TS := $(TARGET_OUT_INTERMEDIATES)/kernelusr.time
KERNEL_CONFIG
:=
$(
KERNEL_OUT
)
/.config
# Move MAKE_PATH here (cut from below), so that it's defined before first use.
# Without this the build fails due to android build system path tool
# restrictions.
MAKE_PATH
:=
$(
SOURCE_ROOT
)
/prebuilts/build-tools/linux-x86/bin/
ifeq
($(KERNEL_DEFCONFIG)$(wildcard $(KERNEL_CONFIG)),)
$(
error
Kernel configuration not defined, cannot build kernel
)
else
...
...
@@ -238,8 +248,6 @@ ifdef RTIC_MPGEN
RTIC_DTB
:=
$(
KERNEL_SYMLINK
)
/rtic_mp.dtb
endif
MAKE_PATH
:=
$(
SOURCE_ROOT
)
/prebuilts/build-tools/linux-x86/bin/
# Helper functions
# Build the kernel
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment