|
|
当对内核或uboot进行修改了, 再在Yocto中构建时, 需要在Yocto 中修改内核或uboot的coMMIt ID。
( _4 N+ R& h6 K' g* ~
& }" Q# P- s7 ?得到内核或uboot的commit ID:0 B9 H; A6 a7 D" a
& v5 e8 [8 T: A4 t2 m
在内核或uboot目录下:
+ e( _7 u" x$ X, U
. f1 W, z2 J! ?3 t9 _git add .(提交所有的改变)& v K/ h- h, {) R! R
( {0 o8 C* J p$ t: g0 E) x2 Kgit config - -gobal user.email “your Email address”(提交修改者邮件)
0 K; _" O" ?! q i' }* h0 ~. C& k2 F( O9 \% y7 ]" H8 }8 x0 I: }
git config - - global user.name “your name” (提交修改者名字)
+ l& F3 T! A3 n4 g
7 l% `; b5 V% F9 k: bgit commit -m “comment”添加注释8 }, x7 I0 x$ a& x0 t5 Z! v
- k4 i' G" W! y& ^git log (得到commit ID)5 h9 a7 K/ d$ u% a( S- w4 b6 ?& H
1 q! M4 X9 F: X2 c" P7 _
* {, t' _- D% |/ Y% c9 c$ R6 ~: Z6 y1 x: o
Yocto 中内核修改地址: I8 Y! S: z2 S9 d, g5 `
. D4 k; k9 a' F8 ^/home/roy/MYD-Y6ULX-devel/04-Source/fsl-release-Yocto/sources/META-myir-imx6ulx/recipes-kernel/linux/linux-mys6ulx_4.1.15.bb 中的“SRCREV”, a- v* a2 }. t) \# t5 Y
0 p7 x/ Z4 v$ B
代码示例如下:6 W: M: O8 R e) r
: C$ [, C. c* j5 A" C) M# Copyright (C) 2013-2016 Freescale SeMIConductor$ H; ]) W2 m" h
3 Q# [* B1 E' M+ y$ \; a* |/ d, M
# Released under the MIT license (see COPYING.MIT for the terms)
# t3 A# n3 o4 q3 X6 N
9 h' _% o% {# u$ Z6 u: _5 K; b; n, A RSUMMARY = "Linux Kernel for MYiR MYS6ULx board"$ g# T6 @) U9 @: `$ C" j
' s9 }" y' C; x/ W
DESCRIPTION = "Linux Kernel provided and supported by Freescale with focus on \" Y; a: d6 P: H5 f5 b. ^
; }; v3 z8 x! M' ui.MX Family Reference Boards. It includes support for many IPs such as GPU, VPU and IPU."
+ l$ T' c( B; i5 W" w& w
& C. S* {% k! {; srequire recipes-kernel/linux/linux-imx.inc- h# f0 Q% B. O) C7 h
8 X: m; |; E% ]6 r& f
require recipes-kernel/linux/linux-dtb.inc
1 U. |0 H' m. ~ W ~
% Z( u3 H5 o( k) s+ I& j3 RDEPENDS += "lzop-native bc-native"6 Y* T7 c; }; E7 Q B# {
- y1 [; ~& p( ~1 D* @+ g0 w- y" k8 N, c
1 }! ~$ A/ G# e3 d+ I! O2 ^LOCALversion = "-1.2.0"6 M7 T5 G( p, a. p( ^7 Q
2 R7 {' `0 {% x' g& s
SRCREV = "d87b5be6bfc5a78cd45d8efa044fddcd7f4b2ac1"9 c R! ]2 l! O
3 Z( E. q7 a: X, V. p# N: }6 _2 LSRCBRANCH = "mys-6ulx"8 Y& Q2 r6 w/ d! K
+ K- Y5 F/ F& v4 g: n0 s& z- ?
SRC_URI = "git:///${HOME}/MYiR-iMX-Linux;protocol=file;branch=${SRCBRANCH} \- Y8 `9 h+ f7 \, [$ L( D1 |& Z
* \- A" k! V2 M) |7 V& d; D9 h
&nBSP; file://defconfig \* |% z7 C& E K% g5 v% H/ P0 i
" B ^' Q2 F7 _4 Y* E "
0 H1 q8 J. I% F
- b/ d. n- A5 Y) o/ w8 WDEFAULT_PREFERENCE = "1"2 q; k6 H3 f/ \0 F& A+ U" x. N6 d
* I, T; k, s1 A- X7 S8 O% j4 I# v, h6 wCOMPATIBLE_MACHINE = "(mx6ull|mx6ul)"2 Z6 }& P6 F' }2 V) _7 T7 `
1 p" m' f0 |1 k4 X+ W z
! j) |$ _4 ?! L$ b# P4 ]' e( xYocto 中uboot 修改ID位置:& }5 U/ J8 w, d
& V9 c6 U3 w. X: c2 l/home/roy/MYD-Y6ULX-devel/04-Source/fsl-release-Yocto/sources/meta-myir-imx6ulx/recipes-bsp/u-boot/u-boot-mys6ulx_2016.03.bb
6 P, m+ W; Z4 E! a( I
! m7 D/ @. m+ x |
|