Commit 36d483e5e2b82eeefea4fdcfd421c4b247d75aca
1 parent
2611ad83ba
Exists in
master
Add Cloud9 IDE Support
Showing 5 changed files with 151 additions and 0 deletions Inline Diff
conf/machine/smarct335x.conf
1 | #TYPE: Machine | 1 | #TYPE: Machine |
2 | #NAME: smarct335x | 2 | #NAME: smarct335x |
3 | #DESCRIPTION: Machine configuration for the Embedian's SMARC T335X Computer on Module product. | 3 | #DESCRIPTION: Machine configuration for the Embedian's SMARC T335X Computer on Module product. |
4 | 4 | ||
5 | TARGET_ARCH = "arm" | 5 | TARGET_ARCH = "arm" |
6 | # DEFAULTTUNE makes it possible to build for the ARM hardfloat ABI. | 6 | # DEFAULTTUNE makes it possible to build for the ARM hardfloat ABI. |
7 | #DEFAULTTUNE ?= "cortexa8hf-neon" | 7 | #DEFAULTTUNE ?= "cortexa8hf-neon" |
8 | 8 | ||
9 | require conf/machine/include/ti33x.inc | 9 | require conf/machine/include/ti33x.inc |
10 | 10 | ||
11 | #Specify gcc recipe version | 11 | #Specify gcc recipe version |
12 | PREFERRED_VERSION_gcc = "linaro-4.7" | 12 | PREFERRED_VERSION_gcc = "linaro-4.7" |
13 | PREFERRED_VERSION_gcc-cross = "linaro-4.7" | 13 | PREFERRED_VERSION_gcc-cross = "linaro-4.7" |
14 | PREFERRED_VERSION_gcc-cross-canadian = "linaro-4.7" | 14 | PREFERRED_VERSION_gcc-cross-canadian = "linaro-4.7" |
15 | PREFERRED_VERSION_gcc-cross-initial = "linaro-4.7" | 15 | PREFERRED_VERSION_gcc-cross-initial = "linaro-4.7" |
16 | PREFERRED_VERSION_gcc-crosssdk = "linaro-4.7" | 16 | PREFERRED_VERSION_gcc-crosssdk = "linaro-4.7" |
17 | PREFERRED_VERSION_gcc-crosssdk-initial = "linaro-4.7" | 17 | PREFERRED_VERSION_gcc-crosssdk-initial = "linaro-4.7" |
18 | PREFERRED_VERSION_gcc-runtime = "linaro-4.7" | 18 | PREFERRED_VERSION_gcc-runtime = "linaro-4.7" |
19 | PREFERRED_VERSION_libgcc = "linaro-4.7" | 19 | PREFERRED_VERSION_libgcc = "linaro-4.7" |
20 | 20 | ||
21 | # Specify kernel recipe | 21 | # Specify kernel recipe |
22 | PREFERRED_PROVIDER_virtual/kernel_smarct335x = "linux-smarct335x" | 22 | PREFERRED_PROVIDER_virtual/kernel_smarct335x = "linux-smarct335x" |
23 | PREFERRED_VERSION_linux-libc-headers_smarct335x = "3.2" | 23 | PREFERRED_VERSION_linux-libc-headers_smarct335x = "3.2" |
24 | # Increase this everytime you change something in the kernel | 24 | # Increase this everytime you change something in the kernel |
25 | MACHINE_KERNEL_PR = "r0" | 25 | MACHINE_KERNEL_PR = "r0" |
26 | KERNEL_IMAGETYPE = "zImage" | 26 | KERNEL_IMAGETYPE = "zImage" |
27 | 27 | ||
28 | # Override several Arago distro package version selections. | 28 | # Override several Arago distro package version selections. |
29 | PREFERRED_PROVIDER_virtual/bootloader = "u-boot" | 29 | PREFERRED_PROVIDER_virtual/bootloader = "u-boot" |
30 | PREFERRED_PROVIDER_u-boot = "u-boot" | 30 | PREFERRED_PROVIDER_u-boot = "u-boot" |
31 | PREFERRED_VERSION_u-boot = "2014.04-smarct335x" | 31 | PREFERRED_VERSION_u-boot = "2014.04-smarct335x" |
32 | 32 | ||
33 | PREFERRED_VERSION_ti-wifi-utils_smarct335x = "RLS.R4.12" | 33 | PREFERRED_VERSION_ti-wifi-utils_smarct335x = "RLS.R4.12" |
34 | 34 | ||
35 | UBOOT_ARCH = "arm" | 35 | UBOOT_ARCH = "arm" |
36 | UBOOT_MACHINE = "smarct335x_evm_uart3_config" | 36 | UBOOT_MACHINE = "smarct335x_evm_uart3_config" |
37 | 37 | ||
38 | # Specify Nodejs version if you would like Cloud9 to be build | ||
39 | PREFERRED_VERSION_nodejs-native_smarct335x = "0.8.21" | ||
40 | |||
38 | # For built-in LCD by default | 41 | # For built-in LCD by default |
39 | XSERVER += "xf86-input-tslib" | 42 | XSERVER += "xf86-input-tslib" |
40 | 43 | ||
41 | SERIAL_CONSOLE = "115200 ttyO3" | 44 | SERIAL_CONSOLE = "115200 ttyO3" |
42 | 45 | ||
43 | # UBI information. Note that this is board and kernel specific. Changes | 46 | # UBI information. Note that this is board and kernel specific. Changes |
44 | # in your kernel port may require changes in these variables. For more | 47 | # in your kernel port may require changes in these variables. For more |
45 | # details about this board please see | 48 | # details about this board please see |
46 | # http://processors.wiki.ti.com/index.php/UBIFS_Support | 49 | # http://processors.wiki.ti.com/index.php/UBIFS_Support |
47 | 50 | ||
48 | # do ubiattach /dev/ubi_ctrl -m 7 -O 2048 | 51 | # do ubiattach /dev/ubi_ctrl -m 7 -O 2048 |
49 | # From dmesg: | 52 | # From dmesg: |
50 | # UBI: smallest flash I/O unit: 2048 | 53 | # UBI: smallest flash I/O unit: 2048 |
51 | # UBI: logical eraseblock size: 126976 bytes | 54 | # UBI: logical eraseblock size: 126976 bytes |
52 | # from ubiattach stdout: | 55 | # from ubiattach stdout: |
53 | # UBI device number 0, total 1988 LEBs | 56 | # UBI device number 0, total 1988 LEBs |
54 | MKUBIFS_ARGS = "-m 4096 -e 253952 -c 1580" | 57 | MKUBIFS_ARGS = "-m 4096 -e 253952 -c 1580" |
55 | 58 | ||
56 | # do ubiattach /dev/ubi_ctrl -m 7 -O 2048 | 59 | # do ubiattach /dev/ubi_ctrl -m 7 -O 2048 |
57 | # from dmesg: | 60 | # from dmesg: |
58 | # UBI: smallest flash I/O unit: 2048 | 61 | # UBI: smallest flash I/O unit: 2048 |
59 | # UBI: physical eraseblock size: 131072 bytes (128 KiB) | 62 | # UBI: physical eraseblock size: 131072 bytes (128 KiB) |
60 | # UBI: sub-page size: 512 | 63 | # UBI: sub-page size: 512 |
61 | # UBI: VID header offset: 2048 (aligned 2048) | 64 | # UBI: VID header offset: 2048 (aligned 2048) |
62 | UBINIZE_ARGS = "-m 4096 -p 256KiB -s 4096 -O 4096" | 65 | UBINIZE_ARGS = "-m 4096 -p 256KiB -s 4096 -O 4096" |
63 | 66 | ||
64 | IMAGE_FSTYPES += "ubi tar.gz" | 67 | IMAGE_FSTYPES += "ubi tar.gz" |
65 | 68 | ||
66 | # Ship all kernel modules by default | 69 | # Ship all kernel modules by default |
67 | MACHINE_EXTRA_RRECOMMENDS = "kernel-modules" | 70 | MACHINE_EXTRA_RRECOMMENDS = "kernel-modules" |
68 | MACHINE_FEATURES = "kernel26 alsa usbgadget usbhost apm vfat ext2 screen touchscreen ethernet" | 71 | MACHINE_FEATURES = "kernel26 alsa usbgadget usbhost apm vfat ext2 screen touchscreen ethernet" |
69 | 72 |
recipes-devtools/cloud9/cloud9/0001-ide-use-node-as-interpreter-for-sketches-instead-of-.patch
File was created | 1 | From ac1953d04f3f26d6aa5d8f53a9397d3ba0e96fa3 Mon Sep 17 00:00:00 2001 | |
2 | From: Koen Kooi <koen@circuitco.com> | ||
3 | Date: Fri, 11 May 2012 15:23:02 +0000 | ||
4 | Subject: [PATCH] ide: use 'node' as interpreter for sketches instead of | ||
5 | argv[0] | ||
6 | |||
7 | This enables running scripts with node 0.6.x instead of 0.4.x | ||
8 | |||
9 | Signed-off-by: root <root@beaglebone.(none)> | ||
10 | --- | ||
11 | server/cloud9/ide.js | 2 +- | ||
12 | 1 files changed, 1 insertions(+), 1 deletions(-) | ||
13 | |||
14 | diff --git a/server/cloud9/ide.js b/server/cloud9/ide.js | ||
15 | index ce782f5..6c4e0f7 100644 | ||
16 | --- a/server/cloud9/ide.js | ||
17 | +++ b/server/cloud9/ide.js | ||
18 | @@ -53,7 +53,7 @@ var Ide = module.exports = function(options, httpServer, exts, socket) { | ||
19 | }; | ||
20 | |||
21 | this.$users = {}; | ||
22 | - this.nodeCmd = process.argv[0]; | ||
23 | + this.nodeCmd = "node"; | ||
24 | |||
25 | var davOptions = { | ||
26 | node: this.options.mountDir, | ||
27 | -- | ||
28 | 1.7.7 | ||
29 | |||
30 |
recipes-devtools/cloud9/cloud9/cloud9-avahi.service
File was created | 1 | <?xml version="1.0" standalone='no'?><!--*-nxml-*--> | |
2 | <!DOCTYPE service-group SYSTEM "avahi-service.dtd"> | ||
3 | |||
4 | <service-group> | ||
5 | <name replace-wildcards="yes">Cloud9 IDE on %h</name> | ||
6 | <service> | ||
7 | <type>_http._tcp</type> | ||
8 | <port>3000</port> | ||
9 | </service> | ||
10 | </service-group> | ||
11 |
recipes-devtools/cloud9/cloud9/index.js
File was created | 1 | var o3 = require('./o3.js') | |
2 | module.exports = o3.xml; |
recipes-devtools/cloud9/cloud9_0.6.bb
File was created | 1 | DESCRIPTION = "Meet Cloud9, development-as-a-service for Javascripters and other developers" | |
2 | HOMEPAGE = "http://c9.io" | ||
3 | LICENSE = "GPLv3" | ||
4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=4784c3bcff601fd8f9515f52a11e7018" | ||
5 | |||
6 | PR = "r3" | ||
7 | |||
8 | DEPENDS = "libxml2 nodejs-native" | ||
9 | |||
10 | # The original sass repo has been moved | ||
11 | |||
12 | SRC_URI = "git://github.com/ajaxorg/cloud9.git;name=cloud9ide \ | ||
13 | git://github.com/ajaxorg/o3;destsuffix=o3;name=o3 \ | ||
14 | git://github.com/ajaxorg/ace.git;destsuffix=git/support/ace;name=ace \ | ||
15 | git://github.com/ajaxorg/ace.wiki.git;destsuffix=git/support/ace/doc/wiki;name=acewiki \ | ||
16 | git://github.com/ajaxorg/apf.git;destsuffix=git/support/apf;name=apf \ | ||
17 | git://github.com/ajaxorg/async.js.git;destsuffix=git/support/asyncjs;name=asyncjs \ | ||
18 | git://github.com/ajaxorg/connect.git;destsuffix=git/support/connect;name=connect \ | ||
19 | git://github.com/jashkenas/coffee-script.git;destsuffix=git/support/connect/support/coffee-script;name=coffee-script \ | ||
20 | git://github.com/visionmedia/expresso.git;destsuffix=git/support/connect/support/expresso;name=expresso \ | ||
21 | git://github.com/visionmedia/node-jscoverage.git;destsuffix=git/support/connect/support/expresso/deps/jscoverage;name=jscoverage \ | ||
22 | git://github.com/cloudhead/less.js.git;destsuffix=git/support/connect/support/less;name=less \ | ||
23 | git://github.com/matehat/sass.js.git;destsuffix=git/support/connect/support/sass;name=sass \ | ||
24 | git://github.com/ajaxorg/jsDAV.git;destsuffix=git/support/jsdav;name=jsdav \ | ||
25 | git://github.com/fjakobs/async.js.git;destsuffix=git/support/jsdav/support/async.js;name=async-js \ | ||
26 | git://github.com/felixge/node-formidable.git;destsuffix=git/support/jsdav/support/formidable;name=formidable \ | ||
27 | git://github.com/ajaxorg/jsftp.git;destsuffix=git/support/jsdav/support/jsftp;name=jsftp \ | ||
28 | git://github.com/Gozala/streamer.git;destsuffix=git/support/jsdav/support/jsftp/support/streamer;name=streamer \ | ||
29 | git://github.com/ajaxorg/node-sftp.git;destsuffix=git/support/jsdav/support/node-sftp;name=sftp \ | ||
30 | git://github.com/ajaxorg/lib-v8debug.git;destsuffix=git/support/lib-v8debug;name=lib-v8debug \ | ||
31 | git://github.com/ajaxorg/socket.io.git;destsuffix=git/support/socket.io;name=socketio \ | ||
32 | git://github.com/LearnBoost/socket.io-client.git;destsuffix=git/support/socket.io-client;name=socketio-client \ | ||
33 | git://github.com/ajaxorg/treehugger.git;destsuffix=git/support/treehugger;name=treehugger \ | ||
34 | git://github.com/ajaxorg/UglifyJS.git;destsuffix=git/support/uglify-js;name=uglify-js \ | ||
35 | file://index.js \ | ||
36 | file://cloud9-avahi.service \ | ||
37 | file://0001-ide-use-node-as-interpreter-for-sketches-instead-of-.patch \ | ||
38 | " | ||
39 | |||
40 | SRCREV_cloud9ide = "c4e2574896a22bb749f0500b25f41c888d346bed" | ||
41 | SRCREV_o3 = "302cd3a6d5039f53a9fa3932bed88b53281c1e1e" | ||
42 | SRCREV_ace = "0fc5392cbe46fb134052c3065a238ad8e3b31cfd" | ||
43 | SRCREV_acewiki = "d2a65d0addc2e5ab922bbff9cb6022a4652b4f13" | ||
44 | SRCREV_apf = "2560b762b2b0e5a8b46f8a4062f927a9a9d239f4" | ||
45 | SRCREV_asyncjs = "d36ead408e2959b1e99572114ef3a1b6a48c1072" | ||
46 | SRCREV_connect = "6bec95b51f2286b942bc7f340d62d816bcdc13d4" | ||
47 | SRCREV_coffee-script = "a53c104db16d3ac9d13cf9f16834edec250b9749" | ||
48 | SRCREV_expresso = "7f10ab7fa655299b4e2f519065b0495e6ac34ef2" | ||
49 | SRCREV_jscoverage = "0d4608a6b4275b020ba665389aa75897d5d4a584" | ||
50 | SRCREV_less = "a2807288008587b95c6c2f8ba5cac16f1bcab98f" | ||
51 | SRCREV_sass = "4dfd4c699e7a8baf226215ab044854c4507f4420" | ||
52 | SRCREV_jsdav = "f04ebf3d012cc8aeabfcfb2b8fab8966d52929e9" | ||
53 | SRCREV_async-js = "92fb710a70efd3cdc2376ebfba71a7fb3a4f1651" | ||
54 | SRCREV_formidable = "a37292d4b7d6d76a38909ed670334c9068d40871" | ||
55 | SRCREV_jsftp = "e3f10c8927347c170cdd0150ef38e18272acf942" | ||
56 | SRCREV_streamer = "1a7f75d4065819171ac91a09974199b932dbe17d" | ||
57 | SRCREV_sftp = "a0539345134970d7535a19cb2608e3d1bc119d71" | ||
58 | SRCREV_lib-v8debug = "7c11897f4bc77c7275c2b6dff5becc72ac018662" | ||
59 | SRCREV_socketio = "735d5239b325df2ba67d2b9bb4ec32442283bc06" | ||
60 | SRCREV_socketio-client = "4375ef1344ecb8ad75a3848a00af6b391822f86b" | ||
61 | SRCREV_treehugger = "436d0d6dd0ce43782e6be08ad12c356730626996" | ||
62 | SRCREV_uglify-js = "941c845c4a01e4e47a158458fe846eb36d0828ad" | ||
63 | |||
64 | SRCREV_FORMAT = "cloud9ide" | ||
65 | |||
66 | S = "${WORKDIR}/git" | ||
67 | |||
68 | do_configure () { | ||
69 | cd ${WORKDIR}/o3 | ||
70 | node-waf -vv configure | ||
71 | } | ||
72 | |||
73 | EXTRA_CXXFLAGS = "-Idefault/include -I../include -Idefault/hosts -I../hosts -Idefault/modules -I../modules -Idefault/deps -I../deps -I${STAGING_DIR_NATIVE}/usr/include/node -fPIC -DPIC" | ||
74 | |||
75 | do_compile () { | ||
76 | cd ${WORKDIR}/o3 | ||
77 | node tools/gluegen.js | ||
78 | cd hosts | ||
79 | ${CXX} ${TARGET_CXXFLAGS} ${EXTRA_CXXFLAGS} -c -o sh_node.o node-o3/sh_node.cc | ||
80 | ${CXX} ${TARGET_CXXFLAGS} ${EXTRA_CXXFLAGS} -c -o sh_node_libs.o node-o3/sh_node_libs.cc | ||
81 | cd .. | ||
82 | ${CXX} ${TARGET_LDFLAGS} hosts/sh_node.o hosts/sh_node_libs.o -o o3.node -shared -Wl,-Bdynamic -lxml2 | ||
83 | } | ||
84 | |||
85 | do_install () { | ||
86 | install -m 0755 -d ${D}${datadir}/cloud9 ${D}${bindir} ${D}/var/lib/cloud9 | ||
87 | rsync -r --exclude=".*" ${S}/* ${D}${datadir}/cloud9 | ||
88 | |||
89 | touch ${D}${bindir}/cloud9 | ||
90 | echo "#!/bin/sh" > ${D}${bindir}/cloud9 | ||
91 | echo "node4 ${datadir}/cloud9/bin/cloud9.js -l 0.0.0.0 -w /var/lib/cloud9 -p 3000" >> ${D}${bindir}/cloud9 | ||
92 | chmod 0755 ${D}${bindir}/cloud9 | ||
93 | |||
94 | install -m 0755 -d ${D}${datadir}/cloud9/support/jsdav/support/node-o3-xml-v4/lib/o3-xml | ||
95 | install -m 0644 ${WORKDIR}/index.js ${D}${datadir}/cloud9/support/jsdav/support/node-o3-xml-v4/lib/o3-xml/index.js | ||
96 | install -m 0644 ${WORKDIR}/o3/modules/o3.js ${D}${datadir}/cloud9/support/jsdav/support/node-o3-xml-v4/lib/o3-xml/o3.js | ||
97 | install -m 0755 ${WORKDIR}/o3/o3.node ${D}${datadir}/cloud9/support/jsdav/support/node-o3-xml-v4/lib/o3-xml/o3.node | ||
98 | |||
99 | install -m 0755 -d ${D}${sysconfdir}/avahi/services/ | ||
100 | install -m 0644 ${WORKDIR}/cloud9-avahi.service ${D}${sysconfdir}/avahi/services/ | ||
101 | } | ||
102 | |||
103 | FILES_${PN}-dbg += "${datadir}/cloud9/support/jsdav/support/node-o3-xml-v4/lib/o3-xml/.debug \ | ||
104 | ${datadir}/cloud9/support/jsdav/support/node-o3-xml-v4/lib/.debug \ | ||
105 | " | ||
106 | |||
107 | RDEPENDS_${PN} = "nodejs4 nodejs gzip" | ||
108 |