summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@rpsys.net>2008-03-17 20:43:12 +0000
committerRichard Purdie <rpurdie@rpsys.net>2008-03-17 20:43:12 +0000
commit6cc27ed49193fa0314d1f7b7ba0463a46f7dbc81 (patch)
tree722a0a1008cb3acc3c5f09eb2774ca1eb53670cf /classes
parent1a8b1be8bc30c90a2f888450aceec53d4b281466 (diff)
cpan.bbclass: Run the install routine as the staging task instead of install when run as part of a native build
Diffstat (limited to 'classes')
-rw-r--r--classes/cpan.bbclass13
1 files changed, 11 insertions, 2 deletions
diff --git a/classes/cpan.bbclass b/classes/cpan.bbclass
index 5a0b4a5c92..506d4c4c81 100644
--- a/classes/cpan.bbclass
+++ b/classes/cpan.bbclass
@@ -50,7 +50,16 @@ cpan_do_compile () {
}
cpan_do_install () {
- oe_runmake install_vendor
+ if [ ${@is_target(d)} == "yes" ]; then
+ oe_runmake install_vendor
+ fi
+}
+
+cpan_do_stage () {
+ if [ ${@is_target(d)} == "no" ]; then
+ oe_runmake install_vendor
+ fi
}
+
-EXPORT_FUNCTIONS do_configure do_compile do_install
+EXPORT_FUNCTIONS do_configure do_compile do_install do_stage