summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README70
-rw-r--r--classes/sdcard_image-rpi.bbclass20
2 files changed, 77 insertions, 13 deletions
diff --git a/README b/README
index db88066..c1321a3 100644
--- a/README
+++ b/README
@@ -36,7 +36,12 @@ Contents:
36 2.E. Set overclocking options 36 2.E. Set overclocking options
373. Extra apps 373. Extra apps
38 3.A. omxplayer 38 3.A. omxplayer
394. Contribution 394. Source code and mirrors
405. Contribution
41 5.A. Mailing List
42 5.B. Gerrit Review Server
43 5.C. Trello Board
446. Maintainers
40 45
41 46
42 47
@@ -109,9 +114,11 @@ How to use it:
1092.A. Optional - compressed deployed files: 1142.A. Optional - compressed deployed files:
110========================================== 115==========================================
1111. Overwrite IMAGE_FSTYPES in local.conf 1161. Overwrite IMAGE_FSTYPES in local.conf
112 IMAGE_FSTYPES = "tar.bz2 ext3.xz rpi-sdimg.xz 117 IMAGE_FSTYPES = "tar.bz2 ext3.xz"
1132. Overwrite SDIMG_ROOTFS_TYPE in local.conf 1182. Overwrite SDIMG_ROOTFS_TYPE in local.conf
114 SDIMG_ROOTFS_TYPE = "ext3.xz" 119 SDIMG_ROOTFS_TYPE = "ext3.xz"
1203. Overwrite SDIMG_COMPRESSION in local.conf
121 SDIMG_COMPRESSION = "xz"
115*Accommodate the values above to your own needs (ex: ext3 / ext4). 122*Accommodate the values above to your own needs (ex: ext3 / ext4).
116 123
1172.B. Optional - GPU memory: 1242.B. Optional - GPU memory:
@@ -163,27 +170,64 @@ adding to you local.conf:
163LICENSE_FLAGS_WHITELIST = "commercial" 170LICENSE_FLAGS_WHITELIST = "commercial"
164 171
165 172
1664. Contributing 1734. Source code and mirrors
174==========================
175
176Main repo:
177 git://git.yoctoproject.org/meta-raspberrypi
178 http://git.yoctoproject.org/git/meta-raspberrypi
179
180Github mirror:
181 https://github.com/djwillis/meta-raspberrypi
182
183Gerrit review repo:
184 https://review.gherzan.ro:8443/meta-raspberrypi
185
186
1875. Contributing
167=============== 188===============
168 189
1905.A. Mailing list
191=================
169To contribute to this layer you should send the patches for review to the 192To contribute to this layer you should send the patches for review to the
170mailing list. 193mailing list.
171 194
172Mailing list: 195Mailing list:
173
174 https://lists.yoctoproject.org/listinfo/yocto 196 https://lists.yoctoproject.org/listinfo/yocto
175 197
176Source code: 198To send changes to mailing list use something like:
199 git send-email --to yocto@yoctoproject.org \
200 --subject-prefix='meta-raspberrypi][PATCH'
177 201
178 git://git.yoctoproject.org/meta-raspberrypi 202OPTIONALLY push changes to gerrit (help maintainers merge and review patches
179 http://git.yoctoproject.org/git/meta-raspberrypi 203easier in this way).
180 https://github.com/djwillis/meta-raspberrypi 204 git push ssh://<username>@review.gherzan.ro:29418/meta-raspberrypi
205 <local-branch>:refs/for/master
206 See 5.B. Gerrit Review Server.
181 207
182When sending patches, please use something like: 2085.B. Gerrit Review Server
209=========================
210We have a gerrit server configured at review.gherzan.ro. Changes made in gerrit
211are merged in git.yoctoproject.org/meta-raspberrypi.
183 212
184git send-email --to yocto@yoctoproject.org \ 213You can setup a gerrit account in less than 2 minutes:
185--subject-prefix='meta-raspberrypi][PATCH' 214A) Login / Register on https://review.gherzan.ro:8443.
215B) Add your PUBLIC key in Settings/SSH Public Keys.
216C) Add remote in your local repo:
217 git remote add gherzan ssh://<username>@review.gherzan.ro:29418/meta-raspberrypi
218D) Push changes to gerrit using:
219 git push gherzan <local-branch>:refs/for/master
186 220
221Please check your spam folder for gerrit messages. Sometimes they end up there.
222
2235.C. Trello Board
224=================
225A public Trello board is set to manage tasks and bugs. Join us there:
226 https://trello.com/b/QsYeVjVe/meta-raspberrypi
227
228
2296. Maintainers
230==============
187 231
188Layer maintainers: John Willis <John.Willis at distant-earth.com> 232 John Willis <John.Willis at distant-earth.com>
189 Andrei Gherzan <andrei at gherzan.ro> 233 Andrei Gherzan <andrei at gherzan.ro>
diff --git a/classes/sdcard_image-rpi.bbclass b/classes/sdcard_image-rpi.bbclass
index a2fcd52..3ee4e94 100644
--- a/classes/sdcard_image-rpi.bbclass
+++ b/classes/sdcard_image-rpi.bbclass
@@ -50,6 +50,13 @@ IMAGE_DEPENDS_rpi-sdimg = " \
50# SD card image name 50# SD card image name
51SDIMG = "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.rpi-sdimg" 51SDIMG = "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.rpi-sdimg"
52 52
53# Compression method to apply to SDIMG after it has been created. Supported
54# compression formats are "gzip", "bzip2" or "xz". The original .rpi-sdimg file
55# is kept and a new compressed file is created if one of these compression
56# formats is chosen. If SDIMG_COMPRESSION is set to any other value it is
57# silently ignored.
58#SDIMG_COMPRESSION ?= ""
59
53# Additional files and/or directories to be copied into the vfat partition from the IMAGE_ROOTFS. 60# Additional files and/or directories to be copied into the vfat partition from the IMAGE_ROOTFS.
54FATPAYLOAD ?= "" 61FATPAYLOAD ?= ""
55 62
@@ -107,6 +114,19 @@ IMAGE_CMD_rpi-sdimg () {
107 else 114 else
108 dd if=${SDIMG_ROOTFS} of=${SDIMG} conv=notrunc seek=1 bs=$(expr 1024 \* ${BOOT_SPACE_ALIGNED} + ${IMAGE_ROOTFS_ALIGNMENT} \* 1024) && sync && sync 115 dd if=${SDIMG_ROOTFS} of=${SDIMG} conv=notrunc seek=1 bs=$(expr 1024 \* ${BOOT_SPACE_ALIGNED} + ${IMAGE_ROOTFS_ALIGNMENT} \* 1024) && sync && sync
109 fi 116 fi
117
118 # Optionally apply compression
119 case "${SDIMG_COMPRESSION}" in
120 "gzip")
121 gzip -k9 "${SDIMG}"
122 ;;
123 "bzip2")
124 bzip2 -k9 "${SDIMG}"
125 ;;
126 "xz")
127 xz -k "${SDIMG}"
128 ;;
129 esac
110} 130}
111 131
112ROOTFS_POSTPROCESS_COMMAND += " rpi_generate_sysctl_config ; " 132ROOTFS_POSTPROCESS_COMMAND += " rpi_generate_sysctl_config ; "