Commit 08b3afd7 authored by Nathan Chancellor's avatar Nathan Chancellor Committed by Treehugger Robot
Browse files

ANDROID: GKI: Fix copying of protected_exports



When building gki_defconfig outside of the Android build system, copying
protected_exports fails:

  $ make -skj"$(nproc)" LLVM=1 O=build gki_defconfig all
  cp: cannot create regular file '/protected_exports': Permission denied
  ...

OUT_DIR is an Android build.sh specific variable, so it will not be
defined when using just kbuild. Use objtree instead, which is guaranteed
to be available through kbuild directly; OUT_DIR is passed to make via
O, which is used to ultimately define objtree, so there is no functional
change.

Bug: 268678245
Change-Id: I235cef7c848a7cf9df9d7d5343af33d95b501a15
Fixes: 3e08ef69 ("ANDROID: GKI: Do not modify protected exports source list")
Signed-off-by: default avatarNathan Chancellor <nathan@kernel.org>
parent 041c1f05
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment