EDA365电子论坛网
标题:
内核,uboot源代码有改动,Yocto要怎样修改???
[打印本页]
作者:
qpggup
时间:
2019-7-10 16:31
标题:
内核,uboot源代码有改动,Yocto要怎样修改???
内核,uboot源代码有改动,Yocto要怎样修改???
* { O( T+ ^ r/ w8 v8 A6 p- _
作者:
kinidrily
时间:
2019-7-10 17:33
当对内核或uboot进行修改了, 再在Yocto中构建时, 需要在Yocto 中修改内核或uboot的commit ID。
. B* I7 [, R9 S7 h; Q. Z3 L
* p- A3 n. o3 A) n+ N9 J& K
得到内核或uboot的commit ID:
7 Y" x$ H ~' E6 Y1 L
: N$ v* w$ M5 g7 G, i0 t+ e
在内核或uboot目录下:
9 b- z) p/ \& E* s
) R7 K: [( [, s& R5 y0 c
git add . (提交所有的改变)
( L6 B% U/ H+ I* G4 E9 F5 D
4 ^2 y, N4 t0 q# ?' j% _. r
git config - -gobal user.email “your Email address”(提交修改者邮件)
6 e' s1 ]( H% B, H/ @2 Q& ~
% Q9 v( {7 |+ |- `
git config - - global user.name “your name” (提交修改者名字)
: { Q6 [& [4 w$ [0 _3 y" Y: F1 P
% s7 n$ y, B" ?. y
git commit -m “comment”添加注释
# m$ N- X3 e3 Y
; }! p o& i1 `, I, g/ Z
git log (得到commit ID)
: B: ^ Q6 ]" F! e' J/ @+ o+ U$ \7 @
' I; X1 V" B6 y6 j. ]) \
; a' { N/ v m2 c1 r# \) A
$ j; X# J2 c. D" J1 R' r2 X3 Z
Yocto 中内核修改地址:
+ u; r. O' B* @+ W1 B
7 S1 }9 r2 W1 W& [1 n# C; y
/home/roy/MYD-Y6ULX-devel/04-Source/fsl-release-Yocto/sources/meta-myir-imx6ulx/recipes-kernel/linux/linux-mys6ulx_4.1.15.bb 中的“SRCREV”
+ \) l7 Z4 v' ?6 b$ J- t
9 M- Y1 j/ j# f8 ^6 [
代码示例如下:
0 O. X, T1 B6 I/ m' l4 i3 \, ^
2 b+ v' z3 @0 U
# Copyright (C) 2013-2016 Freescale Semiconductor
|: F( r4 `/ H* \) X! m: z
" j2 Y! \0 B: U, M
# Released under the MIT license (see COPYING.MIT for the terms)
2 {7 \+ f3 E& P% `' k* l5 ^
% l1 |$ b# l+ I6 e! P5 [
SUMMARY = "Linux Kernel for MYiR MYS6ULx board"
; ]/ l6 ~4 T# T1 ^9 S
& ^, y& N: k( x$ W K
DESCRIPtiON = "Linux Kernel provided and supported by Freescale with focus on \
8 @. @: h& d1 S; C% }# _
i.MX Family Reference Boards. It includes support for many IPs such as GPU, VPU and IPU."
+ e! p9 C( K% t4 Q% M' I6 F
) ?9 E! x% i m( w A7 {* g- M
require recipes-kernel/linux/linux-imx.inc
" ]! u0 t. T5 H4 \6 q, L, Z' f* J
$ V) k) V9 N: O
require recipes-kernel/linux/linux-dtb.inc
5 W" m' w. M; ~: y3 Z8 }% |: e
& ^( P l/ W. r* @' _! c* j1 t- O) v
DEPENDS += "lzop-native bc-native"
@. W% L- R) K$ S, ]6 [- Y0 ?
' P8 u4 I+ `% ?8 Q
, J) p$ T7 \. ^% a
4 u# u5 K2 ?" f+ s
LOCALVERSION = "-1.2.0"
# K3 H; _* W4 R# Y3 o' u
8 Q8 m- }. `2 u: {) ?& u
SRCREV = "d87b5be6bfc5a78cd45d8efa044fddcd7f4b2ac1"
& |: D8 x- X& q. K6 o; s* ~
3 Z( E y- e2 A4 I4 [& V. y
SRCBRANCH = "mys-6ulx"
' {! \ {. _6 |9 l: R
% c0 i5 S; L- u8 M
SRC_URI = "git:///${HOME}/MYiR-iMX-Linux;protocol=file;branch=${SRCBRANCH} \
; N$ m6 P; q9 |7 ~7 g/ g, B3 w
file://defconfig \
$ p2 y. J5 ~! {; p8 o/ c. _% q# E2 H
"
, s+ d" v) W) U: E. i
. u4 q3 r8 R1 G% }$ O) Z+ j4 M
DEFAULT_PREFERENCE = "1"
' ?6 R3 G" k% \
5 E+ }' a8 n2 h/ z8 S* p3 ^
COMPATIBLE_MACHINE = "(mx6ull|mx6ul)"
, P8 P, k% |$ h* | ?
# \, t% G8 Z: K
8 u+ e9 U' X3 E* j; X& Q
Yocto 中uboot 修改ID位置:
/ L, E/ H& O2 B) I9 i. {
- v! q+ C5 F' |8 g3 R/ y) Y7 s
/home/roy/MYD-Y6ULX-devel/04-Source/fsl-release-Yocto/sources/meta-myir-imx6ulx/recipes-bsp/u-boot/u-boot-mys6ulx_2016.03.bb
欢迎光临 EDA365电子论坛网 (https://bbs.eda365.com/)
Powered by Discuz! X3.2