diff options
author | Richard Purdie <richard@openedhand.com> | 2007-05-17 14:27:18 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2007-05-17 14:27:18 +0000 |
commit | 5c3459c7e3c1461c5563ea18f87158dc7692b9d5 (patch) | |
tree | 890c1ed27cda9a3a3c099f4f7f359216f34ee63d /meta | |
parent | e2567c42dd3eb98dcfdaa64160cdbe35152e7b9b (diff) | |
download | poky-5c3459c7e3c1461c5563ea18f87158dc7692b9d5.tar.gz |
pointercal: Always create a package but empty on devices without a default
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1751 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta')
-rw-r--r-- | meta/packages/pointercal/files/pointercal | 0 | ||||
-rw-r--r-- | meta/packages/pointercal/pointercal_0.0.bb | 11 |
2 files changed, 7 insertions, 4 deletions
diff --git a/meta/packages/pointercal/files/pointercal b/meta/packages/pointercal/files/pointercal new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/meta/packages/pointercal/files/pointercal | |||
diff --git a/meta/packages/pointercal/pointercal_0.0.bb b/meta/packages/pointercal/pointercal_0.0.bb index 36bcca85bf..6cf50241a6 100644 --- a/meta/packages/pointercal/pointercal_0.0.bb +++ b/meta/packages/pointercal/pointercal_0.0.bb | |||
@@ -1,14 +1,17 @@ | |||
1 | DESCRIPTION = "Touchscreen calibration data" | 1 | DESCRIPTION = "Touchscreen calibration data" |
2 | SECTION = "base" | 2 | SECTION = "base" |
3 | 3 | PR = "r1" | |
4 | COMPATIBLE_MACHINE = "(spitz|c7x0|nokia800|akita)" | ||
5 | 4 | ||
6 | SRC_URI = "file://pointercal" | 5 | SRC_URI = "file://pointercal" |
7 | S = "${WORKDIR}" | 6 | S = "${WORKDIR}" |
8 | 7 | ||
8 | ALLOW_EMPTY_${PN} = "1" | ||
9 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 9 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
10 | 10 | ||
11 | do_install() { | 11 | do_install() { |
12 | install -d ${D}${sysconfdir}/ | 12 | # Only install file if it has a contents |
13 | install -m 0644 ${S}/pointercal ${D}${sysconfdir}/ | 13 | if [ -s ${S}/pointercal ]; then |
14 | install -d ${D}${sysconfdir}/ | ||
15 | install -m 0644 ${S}/pointercal ${D}${sysconfdir}/ | ||
16 | fi | ||
14 | } | 17 | } |