summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/image.bbclass2
-rw-r--r--meta/classes/kernel.bbclass2
-rw-r--r--meta/files/deploydir_readme.txt8
3 files changed, 12 insertions, 0 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index 54eb78b7c9..286ae013f9 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -138,6 +138,8 @@ fakeroot do_rootfs () {
138 mkdir -p ${IMAGE_ROOTFS} 138 mkdir -p ${IMAGE_ROOTFS}
139 mkdir -p ${DEPLOY_DIR_IMAGE} 139 mkdir -p ${DEPLOY_DIR_IMAGE}
140 140
141 cp -n ${COREBASE}/meta/files/deploydir_readme.txt ${DEPLOY_DIR_IMAGE}/README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt
142
141 if [ "${USE_DEVFS}" != "1" ]; then 143 if [ "${USE_DEVFS}" != "1" ]; then
142 for devtable in ${@get_devtable_list(d)}; do 144 for devtable in ${@get_devtable_list(d)}; do
143 makedevs -r ${IMAGE_ROOTFS} -D $devtable 145 makedevs -r ${IMAGE_ROOTFS} -D $devtable
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 386b05e57a..a2b10f2c7a 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -500,6 +500,8 @@ kernel_do_deploy() {
500 cd ${DEPLOYDIR} 500 cd ${DEPLOYDIR}
501 rm -f ${KERNEL_IMAGE_SYMLINK_NAME}.bin 501 rm -f ${KERNEL_IMAGE_SYMLINK_NAME}.bin
502 ln -sf ${KERNEL_IMAGE_BASE_NAME}.bin ${KERNEL_IMAGE_SYMLINK_NAME}.bin 502 ln -sf ${KERNEL_IMAGE_BASE_NAME}.bin ${KERNEL_IMAGE_SYMLINK_NAME}.bin
503
504 cp -n ${COREBASE}/meta/files/deploydir_readme.txt ${DEPLOYDIR}/README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt
503} 505}
504do_deploy[dirs] = "${DEPLOYDIR} ${B}" 506do_deploy[dirs] = "${DEPLOYDIR} ${B}"
505 507
diff --git a/meta/files/deploydir_readme.txt b/meta/files/deploydir_readme.txt
new file mode 100644
index 0000000000..97ec1855f5
--- /dev/null
+++ b/meta/files/deploydir_readme.txt
@@ -0,0 +1,8 @@
1Files in the deploy directory will not be re-created automatically if you
2delete them. If you do delete a file, you will need to run:
3
4 bitbake -c clean TARGET
5 bitbake TARGET
6
7where TARGET is the name of the appropriate package or target e.g.
8"virtual/kernel" for the kernel, an image, etc.