|
|
当对内核或uboot进行修改了, 再在Yocto中构建时, 需要在Yocto 中修改内核或uboot的commit ID。 & e1 h- O0 x7 c, O+ G; S
7 T6 {; L2 J! m4 q% ~( c- A$ s
得到内核或uboot的commit ID:4 ]; |0 v7 m& f4 m
6 K- g7 A O. Z/ T9 p在内核或uboot目录下:3 H" |5 n1 M' E. T* D
6 t* z( Q) |/ I0 i; I- y5 Wgit add . (提交所有的改变)
8 U# \& e* x5 T+ P
4 S( R; d7 y6 I% Cgit config - -gobal user.email “your Email address”(提交修改者邮件)
/ n$ K4 }- t: Q! r+ S; @- r9 I. ^9 Q5 m2 P& t
git config - - global user.name “your name” (提交修改者名字)
2 P0 Q$ y! v6 P- Y( P/ H7 i7 b: T0 R; n
git commit -m “comment”添加注释% p. X3 o5 @1 j' V, r
6 n8 l7 N6 \+ p; [9 {3 w; d, S% D/ kgit log (得到commit ID)
6 i/ X& x& r7 z! c" x8 |2 ?) C( }0 A M0 R, n
7 E% g1 g( r% G! P; N |+ F2 Z) G/ t
Yocto 中内核修改地址:- S# s1 F# a. `% Y+ L0 J/ P% {
$ f8 n+ m( p* X& ]! r6 L$ {
/home/roy/MYD-Y6ULX-devel/04-Source/fsl-release-Yocto/sources/meta-myir-imx6ulx/recipes-kernel/linux/linux-mys6ulx_4.1.15.bb 中的“SRCREV”( ^ p3 ^$ q# }
& |' t+ {8 Q b) @! {/ R代码示例如下:
6 F) E& W) H" j# r& E n8 R ?% L6 E" c
# Copyright (C) 2013-2016 Freescale Semiconductor
% A, N8 c- m& \+ ^. y* u% f! G * E8 d M4 n& N" x: M" l
# Released under the MIT license (see COPYING.MIT for the terms)! [( B z$ R: n# t- a
( W, q! B* B5 k6 M) i" \) E& b2 K; F SUMMARY = "Linux Kernel for MYiR MYS6ULx board"6 V& t4 a- X. g! I- a! E
; a: H! G. M. c# { DESCRIPtiON = "Linux Kernel provided and supported by Freescale with focus on \) l$ b4 ]/ S( {7 g2 Z1 o1 v5 m
i.MX Family Reference Boards. It includes support for many IPs such as GPU, VPU and IPU."4 V/ a f) s# p( |
# D- E. b1 i4 ?2 d3 p require recipes-kernel/linux/linux-imx.inc* G( T7 c n1 \9 _9 X* y
+ q+ |3 Y1 j F8 T x require recipes-kernel/linux/linux-dtb.inc+ F, y* H9 Q" h9 d F* J: D5 ~
& E4 R( Q* Z( ^8 N DEPENDS += "lzop-native bc-native"
2 L$ X0 d. @/ ] , ]5 {( {+ r( K8 Y( G) s8 t
% o3 v9 {3 J1 T; T f! Z; e
" N$ ^& S; o& B
LOCALVERSION = "-1.2.0"( f i& M+ T* Z2 I* A# P8 L
6 k( L& i t/ ^/ m8 k
SRCREV = "d87b5be6bfc5a78cd45d8efa044fddcd7f4b2ac1"* b8 D/ L- S" w/ h6 _
- K9 y% e1 T+ u# h0 o/ k& i& J6 W# _ SRCBRANCH = "mys-6ulx" i. a- N D4 t) N; v+ F
3 }3 P3 y/ m. J7 [
SRC_URI = "git:///${HOME}/MYiR-iMX-Linux;protocol=file;branch=${SRCBRANCH} \( q0 B8 z' E0 @3 ~ r. \2 M/ u9 h
file://defconfig \' a# }, O3 q7 _5 h. _" w
"
# J9 g5 Z0 Q6 q: l5 ~
: l7 j& }6 D! {' g DEFAULT_PREFERENCE = "1"! p5 \0 \2 N; x; |& b9 O0 }
" g) G7 c5 g/ j$ s8 V5 s
COMPATIBLE_MACHINE = "(mx6ull|mx6ul)"
6 i1 v, M _1 v% A
, Y/ a* r: v) A+ q3 {" x
6 m$ P) W1 Z C) F) |# \$ O# LYocto 中uboot 修改ID位置:
% \+ _0 G8 z) r, z0 W4 i3 a2 I" V6 I" W) r2 G: ?; |$ F
/home/roy/MYD-Y6ULX-devel/04-Source/fsl-release-Yocto/sources/meta-myir-imx6ulx/recipes-bsp/u-boot/u-boot-mys6ulx_2016.03.bb |
|