|
|
当对内核或uboot进行修改了, 再在Yocto中构建时, 需要在Yocto 中修改内核或uboot的commit ID。
% U+ `9 b. n E! {1 m! n5 n3 J9 n: }' H9 M. z l* _8 \( F
得到内核或uboot的commit ID:
; S% D M- F7 C
0 v, m; r& I% ?1 g在内核或uboot目录下:/ D, h& \+ I' q- n4 W
3 D# k# L: T* P. z; ggit add . (提交所有的改变)8 d7 h3 H" [4 ]. N) X$ K
1 m0 [& H/ `6 r: K* B8 T( F* U* D
git config - -gobal user.email “your Email address”(提交修改者邮件)
1 h) d% d, k4 R7 [
' y9 V5 Z& ^3 ^+ A" ^9 U% b3 Hgit config - - global user.name “your name” (提交修改者名字)
- a5 S; \$ M" z2 b! h! j E$ ]3 k+ @8 Z1 N$ ~: H9 d
git commit -m “comment”添加注释
" m1 H# ~. T* h _- ^0 z) k0 G/ G4 D+ f- k$ o) p" j
git log (得到commit ID)
1 {' H) F% C# z
2 f, y1 g8 ]. Y; K/ o' l: E6 b
7 V* A" z/ J) O) |4 H
3 D' S5 I( K+ m& V' N0 TYocto 中内核修改地址:) U2 U N) m1 x2 K: Z
- @* E( A' m; Q+ I U* r* T/home/roy/MYD-Y6ULX-devel/04-Source/fsl-release-Yocto/sources/meta-myir-imx6ulx/recipes-kernel/linux/linux-mys6ulx_4.1.15.bb 中的“SRCREV”
+ s+ ~, G8 D2 q9 b/ C
3 l" @3 c8 T z代码示例如下:
m8 l1 H& f6 i! X* X8 N2 W Y1 X4 k( R& |% i6 _
# Copyright (C) 2013-2016 Freescale Semiconductor
$ \+ |, I9 e; X2 }. J % f: w, |9 F6 z
# Released under the MIT license (see COPYING.MIT for the terms)
9 p9 g6 a; x. X ; X' Z% ]4 F5 v1 M: j, p# E" H
SUMMARY = "Linux Kernel for MYiR MYS6ULx board"
; a& \" ?* p; W: T
; D0 o: H8 Q4 B9 V% M+ R9 V& }6 a+ [ DESCRIPtiON = "Linux Kernel provided and supported by Freescale with focus on \5 U/ R5 u" |7 [; B2 T1 l
i.MX Family Reference Boards. It includes support for many IPs such as GPU, VPU and IPU."
, B8 ^2 f) I5 N8 f4 W3 A
& x# o* d' f+ H6 R require recipes-kernel/linux/linux-imx.inc$ C/ e) B% I2 z @
* J! b5 j+ i- i8 @$ @& A
require recipes-kernel/linux/linux-dtb.inc
& t# t, k5 t$ u0 X
9 d9 s' ~, Q$ R+ l DEPENDS += "lzop-native bc-native"
) T: V: G* P/ P' _ / p+ f) i& `* A
# o% s9 o/ y! f1 j0 b" v5 M. ?" t/ x
* N( S% d. Z9 D. I: M% [- u LOCALVERSION = "-1.2.0"
+ B7 K% A ?! r& R$ C/ o $ H( w+ N6 x- M) j# z/ o+ F. c7 R7 k
SRCREV = "d87b5be6bfc5a78cd45d8efa044fddcd7f4b2ac1"
$ a0 M* m0 c: m# X; u, Q6 l
( }: j% h% Y9 h% P5 k SRCBRANCH = "mys-6ulx"& _7 {9 i6 V2 k* K" f
( K. Q# J; r* i5 Z8 ?- N. e1 _
SRC_URI = "git:///${HOME}/MYiR-iMX-Linux;protocol=file;branch=${SRCBRANCH} \0 M% P8 [% l) M" C' L+ z
file://defconfig \# a- P8 f0 J8 _2 n7 T' o. ^# ^9 j3 S
"
& d/ R# E+ W( ]
6 ?! S+ T, D5 J& S DEFAULT_PREFERENCE = "1"
' F" t$ _( k4 A n, G& @ & J% z0 G K3 Y( L# n# m
COMPATIBLE_MACHINE = "(mx6ull|mx6ul)"+ _. P4 |0 P7 G2 k5 j4 u( D
0 q. M9 r/ W2 l& g2 {! o
. Z1 M( J8 K0 J! G, g. ?0 EYocto 中uboot 修改ID位置:! d; Q3 ~+ w; ~7 ]
* z& ~. P/ }* @5 j6 W, W. u. 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 |
|