Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AndroidKernelMSM
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Werner Sembach
AndroidKernelMSM
Commits
f19ebe06
Commit
f19ebe06
authored
Mar 14, 2013
by
Jongrak Kwon
Committed by
Devin Kim
Apr 15, 2013
Browse files
Options
Downloads
Patches
Plain Diff
Clean up AndroidKernel.mk to use dt compile in kernel
Change-Id: Ida3360a9865ef79ceb4c6a2c66d37d20ca6bbc94
parent
cc126182
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
AndroidKernel.mk
+0
-25
0 additions, 25 deletions
AndroidKernel.mk
with
0 additions
and
25 deletions
AndroidKernel.mk
+
0
−
25
View file @
f19ebe06
...
...
@@ -11,30 +11,6 @@ KERNEL_MODULES_INSTALL := system
KERNEL_MODULES_OUT
:=
$(
TARGET_OUT
)
/lib/modules
KERNEL_IMG
=
$(
KERNEL_OUT
)
/arch/arm/boot/Image
DTS_NAMES
?=
$(
shell
$(
PERL
)
-e
'while (<>
)
{$$a = $$1 if /CONFIG_ARCH_((?:MSM|QSD|MPQ)[a-zA-Z0-9]+)=y/; $$r = $$1 if /CONFIG_MSM_SOC_REV_(?!NONE)(\w+)=y/; $$arch = $$arch.lc("$$a$$r ") if /CONFIG_ARCH_((?:MSM|QSD|MPQ)[a-zA-Z0-9]+)=y/} print $$arch;'
$(
KERNEL_CONFIG
)
)
KERNEL_USE_OF
?=
$(
shell
$(
PERL
)
-e
'$$of = "n"; while (<>
)
{ if (/CONFIG_USE_OF=y/) { $$of = "y"; break; } } print $$of;'
kernel/arch/arm/configs/
$(
KERNEL_DEFCONFIG
)
)
ifeq
"$(KERNEL_USE_OF)" "y"
DTS_FILES
=
$(
wildcard
$(
TOP
)
/kernel/arch/arm/boot/dts/
$(
DTS_NAME
)
*
.dts
)
DTS_FILE
=
$(
lastword
$(
subst /, ,
$(
1
)))
DTB_FILE
=
$(
addprefix
$(
KERNEL_OUT
)
/arch/arm/boot/,
$(
patsubst %.dts,%.dtb,
$(
call DTS_FILE,
$(
1
))))
ZIMG_FILE
=
$(
addprefix
$(
KERNEL_OUT
)
/arch/arm/boot/,
$(
patsubst %.dts,%-zImage,
$(
call DTS_FILE,
$(
1
))))
KERNEL_ZIMG
=
$(
KERNEL_OUT
)
/arch/arm/boot/zImage
DTC
=
$(
KERNEL_OUT
)
/scripts/dtc/dtc
define
append-dtb
mkdir
-p
$(KERNEL_OUT)/arch/arm/boot;\
$(
foreach
DTS_NAME,
$(
DTS_NAMES
)
,
\
$(
foreach d,
$(
DTS_FILES
)
,
\
$(
DTC
)
-p
1024
-O
dtb
-o
$(
call DTB_FILE,
$(
d
))
$(
d
);
\
cat
$(
KERNEL_ZIMG
)
$(
call DTB_FILE,
$(
d
))
>
$(
call ZIMG_FILE,
$(
d
));))
endef
else
define
append-dtb
endef
endif
ifeq
($(TARGET_USES_UNCOMPRESSED_KERNEL),true)
$(info
Using
uncompressed
kernel)
TARGET_PREBUILT_KERNEL
:=
$(
KERNEL_OUT
)
/piggy
...
...
@@ -73,7 +49,6 @@ $(TARGET_PREBUILT_INT_KERNEL): $(KERNEL_OUT) $(KERNEL_CONFIG) $(KERNEL_HEADERS_I
$(
MAKE
)
-C
kernel
O
=
../
$(
KERNEL_OUT
)
INSTALL_MOD_PATH
=
../../
$(
KERNEL_MODULES_INSTALL
)
INSTALL_MOD_STRIP
=
1
ARCH
=
arm
CROSS_COMPILE
=
arm-eabi- modules_install
$(
mv-modules
)
$(
clean-module-folder
)
$(
append-dtb
)
$(KERNEL_HEADERS_INSTALL)
:
$(KERNEL_OUT) $(KERNEL_CONFIG)
$(
MAKE
)
-C
kernel
O
=
../
$(
KERNEL_OUT
)
ARCH
=
arm
CROSS_COMPILE
=
arm-eabi- headers_install
...
...
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