diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2011-08-16 18:13:04 +0100 |
---|---|---|
committer | Saul Wold <sgw@linux.intel.com> | 2011-08-18 13:45:43 -0700 |
commit | 4316c5e9eec67d71f4699102a63a5f968bd8d1d9 (patch) | |
tree | ffd7526418403d68c7a3c8853cacad3dcf6a3f5d /meta/classes/kernel.bbclass | |
parent | 2e83e6755441cb14bd907d306974338c15173189 (diff) | |
download | openembedded-core-4316c5e9eec67d71f4699102a63a5f968bd8d1d9.tar.gz openembedded-core-4316c5e9eec67d71f4699102a63a5f968bd8d1d9.tar.bz2 openembedded-core-4316c5e9eec67d71f4699102a63a5f968bd8d1d9.zip |
image.bbclass, kernel.bbclass: create warning file about deleting deploydir files
New users sometimes delete files in tmp/deploy/images assuming they will
be re-created just by re-running the build, and then are confused when
this doesn't work. To discourage people from doing this, create a file
called README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt in
tmp/deploy/images containing an explanation of what needs to be done to
re-create files there.
Fixes [YOCTO #1315] and [YOCTO #1346].
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'meta/classes/kernel.bbclass')
-rw-r--r-- | meta/classes/kernel.bbclass | 2 |
1 files changed, 2 insertions, 0 deletions
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() { cd ${DEPLOYDIR} rm -f ${KERNEL_IMAGE_SYMLINK_NAME}.bin ln -sf ${KERNEL_IMAGE_BASE_NAME}.bin ${KERNEL_IMAGE_SYMLINK_NAME}.bin + + cp -n ${COREBASE}/meta/files/deploydir_readme.txt ${DEPLOYDIR}/README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt } do_deploy[dirs] = "${DEPLOYDIR} ${B}" |