|
|
当对内核或uboot进行修改了, 再在Yocto中构建时, 需要在Yocto 中修改内核或uboot的commit ID。
4 A4 g4 ?0 P9 R% a) F. h6 b+ `+ h) n8 j5 ?
得到内核或uboot的commit ID:
5 v3 N, Q/ W: R% f9 ?. w0 l% n- ]) o5 |
在内核或uboot目录下:
6 }" e5 k- D" \0 Y, a9 V) j) t' R( S6 i. t; j. o) L
git add . (提交所有的改变)
- Z* q! g3 @/ Q2 h$ G# G
; i: _5 c O3 r2 ^git config - -gobal user.email “your Email address”(提交修改者邮件) {5 T3 {( Y- u' o' [& b% J( n" S
. i6 L8 `: @, Z/ t7 i7 [/ i$ A$ Qgit config - - global user.name “your name” (提交修改者名字)' ~. x$ k- i/ L9 ]
6 Q: `, R- o8 o/ q# S0 H, @$ u. wgit commit -m “comment”添加注释
9 X1 v) W* s# }- G! |# C2 x3 C; w r# T4 N, b6 G# }9 a% y( J
git log (得到commit ID) A; x- t8 A" e0 i8 w( G8 T8 b) L
: e7 _3 Q6 A3 t$ x$ Y
* k8 t, H7 O6 Q# V5 l5 T9 v. O6 \, X
8 H0 V7 f7 z9 K5 LYocto 中内核修改地址:
% I$ }6 Y# [3 T, O$ K
2 |5 M+ @2 x/ i: b9 K( F' |9 }3 r/home/roy/MYD-Y6ULX-devel/04-Source/fsl-release-Yocto/sources/meta-myir-imx6ulx/recipes-kernel/linux/linux-mys6ulx_4.1.15.bb 中的“SRCREV”. ?7 T- D# ~: E; s/ E
5 a3 }2 l9 _/ [: `+ F" f
代码示例如下:0 |) a: G' Z( z5 v6 M' ?- @% S/ x
# x' p- @$ @3 R& t0 K # Copyright (C) 2013-2016 Freescale Semiconductor
: c2 Y$ T* E) d: c; N+ x
# c" P |* Z+ g5 u # Released under the MIT license (see COPYING.MIT for the terms)
5 _* z9 e s% D
4 q( ]( z* S9 s3 Q, p SUMMARY = "Linux Kernel for MYiR MYS6ULx board"
2 j- M# [, t/ @' e" @2 t' D ( E% o% g& n; b R; u
DESCRIPtiON = "Linux Kernel provided and supported by Freescale with focus on \; U- B2 [! P4 n7 s9 u
i.MX Family Reference Boards. It includes support for many IPs such as GPU, VPU and IPU."8 O, F, `8 [$ [: n) k7 I
3 O- O- ^8 v* I3 Y5 s ? require recipes-kernel/linux/linux-imx.inc, z2 A( D! a8 L* z0 @0 ~
& I( X; c; W6 r require recipes-kernel/linux/linux-dtb.inc' K" L3 e4 z6 m# [
9 m1 W$ \7 D, P
DEPENDS += "lzop-native bc-native") _1 } }7 g5 C0 l8 k5 i8 C0 p
. y0 `& J% A9 }, N! O" P
. \/ k2 w! b6 Q3 d* t5 V
# ]3 F' F9 ~/ }/ i9 R# o$ r7 S LOCALVERSION = "-1.2.0"! j3 Y/ A/ s [9 H# p
% ]. D1 S3 x8 L0 \1 t
SRCREV = "d87b5be6bfc5a78cd45d8efa044fddcd7f4b2ac1"; _2 R7 w, {3 a o k% d# M4 o# [
5 S6 h9 b; V7 U( i. A: N0 M* @$ W SRCBRANCH = "mys-6ulx") G/ l+ R6 t% S) s# z9 o
6 N5 P1 U/ m; } SRC_URI = "git:///${HOME}/MYiR-iMX-Linux;protocol=file;branch=${SRCBRANCH} \
* D7 b4 K/ e) k file://defconfig \6 ^/ @# n0 v& @+ h
"7 a; }$ f0 L2 O! }
7 Y$ R3 k, y! O0 z8 ]
DEFAULT_PREFERENCE = "1"* X; N% n9 F- q7 C. ?$ V' ^! {
" N/ A) e! v. ^; l% r Y COMPATIBLE_MACHINE = "(mx6ull|mx6ul)"
2 R7 p! j3 p% I- V% {, |- ~
; v0 D! w) A" M' ]7 w2 Z* s+ d L5 l( q7 ~( t$ n
Yocto 中uboot 修改ID位置:2 k$ ?1 E5 b& }) o
. l" [" T) m( W' u/home/roy/MYD-Y6ULX-devel/04-Source/fsl-release-Yocto/sources/meta-myir-imx6ulx/recipes-bsp/u-boot/u-boot-mys6ulx_2016.03.bb |
|