diff options
author | Mario Domenech Goulart <mario@ossystems.com.br> | 2009-11-24 15:53:50 -0200 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2009-11-24 16:39:23 -0200 |
commit | 32b754e45f81ec369258a0417271535770d12aa3 (patch) | |
tree | a969961c161ab4aeea2983b0e6e0b7ae76ab666c /recipes/chicken/chicken-cross_4.2.0.bb | |
parent | bad39c9259d10cb30f93bde04c1c09954ec7ea55 (diff) |
chicken: added support for cross compilation with chicken
Added the chicken-cross recipe and a chicken class for translating
architectures to the Chicken nomenclature.
Signed-off-by: Mario Domenech Goulart <mario@ossystems.com.br>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'recipes/chicken/chicken-cross_4.2.0.bb')
-rw-r--r-- | recipes/chicken/chicken-cross_4.2.0.bb | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/recipes/chicken/chicken-cross_4.2.0.bb b/recipes/chicken/chicken-cross_4.2.0.bb new file mode 100644 index 0000000000..452128a208 --- /dev/null +++ b/recipes/chicken/chicken-cross_4.2.0.bb @@ -0,0 +1,27 @@ +require chicken.inc + +DEPENDS = "gcc-cross-sdk chicken" +RDEPENDS = "gcc-cross-sdk chicken" + +inherit cross + +do_compile() { + make PLATFORM="linux" PREFIX="${prefix}" TARGET_PREFIX="${STAGING_DIR}/${TARGET_SYS}/usr" TARGET_RUN_PREFIX="${layout_prefix}" TARGETSYSTEM="${TARGET_SYS}" C_COMPILER=gcc LIBRARIAN=ar +} + +do_install() { + make PLATFORM="linux" PREFIX="${prefix}" TARGET_PREFIX="${STAGING_DIR}/${TARGET_SYS}/usr" TARGET_RUN_PREFIX="${layout_prefix}" TARGETSYSTEM="${TARGET_SYS}" C_COMPILER=gcc LIBRARIAN=ar install +} + +do_stage() { + make PLATFORM="linux" PREFIX="${prefix}" TARGET_PREFIX="${STAGING_DIR}/${TARGET_SYS}/usr" TARGET_RUN_PREFIX="${layout_prefix}" TARGETSYSTEM="${TARGET_SYS}" C_COMPILER=gcc LIBRARIAN=ar install +} + +PACKAGES += "chicken-bin libchicken libuchicken" + +FILES_${PN} = "" +FILES_libchicken = "${libdir}/libchicken.so.*" +FILES_libuchicken = "${libdir}/libuchicken.so.*" +FILES_${PN}-bin = "${bindir}/* ${datadir}/chicken/*.* ${libdir}/chicken/*/*.so" +FILES_${PN}-doc += "${datadir}/chicken/doc" +FILES_${PN}-dbg += "${libdir}/chicken/*/.debug" |