summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Martin <paul.martin@codethink.co.uk>2015-04-07 15:47:26 (GMT)
committerRichard Dale <richard.dale@codethink.co.uk>2015-06-26 10:49:16 (GMT)
commit8c07ad37990c044493e858b0aa3feb2ec44c8501 (patch)
tree94efa2dc01f1f0d873b3d54574794edbaf087c35
parentba39c3a960095517ec0a998c6798458929b2db76 (diff)
downloaddefinitions-8c07ad37990c044493e858b0aa3feb2ec44c8501.tar.gz
EdgeRouter Pro build system
-rw-r--r--strata/bsp-mips64b-edgerouterpro.morph12
-rw-r--r--strata/bsp-mips64b-edgerouterpro/linux-mips64b-edgerouterpro.morph66
-rw-r--r--systems/build-system-mips64b.morph36
3 files changed, 114 insertions, 0 deletions
diff --git a/strata/bsp-mips64b-edgerouterpro.morph b/strata/bsp-mips64b-edgerouterpro.morph
new file mode 100644
index 0000000..0903208
--- /dev/null
+++ b/strata/bsp-mips64b-edgerouterpro.morph
@@ -0,0 +1,12 @@
+name: bsp-mips64b-edgerouterpro
+kind: stratum
+description: The platform dependent components required to boot EdgeRouter Pro
+build-depends:
+- morph: strata/core.morph
+chunks:
+- name: linux-mips64b-edgerouterpro
+ morph: strata/bsp-mips64b-edgerouterpro/linux-mips64b-edgerouterpro.morph
+ repo: github:nowster/linux-ubnt-e200
+ ref: 5201645087eb7a5c0bcb09df352973eb948febd1
+ unpetrify-ref: edgerouter_4.0-rc7
+ build-depends: []
diff --git a/strata/bsp-mips64b-edgerouterpro/linux-mips64b-edgerouterpro.morph b/strata/bsp-mips64b-edgerouterpro/linux-mips64b-edgerouterpro.morph
new file mode 100644
index 0000000..74152c7
--- /dev/null
+++ b/strata/bsp-mips64b-edgerouterpro/linux-mips64b-edgerouterpro.morph
@@ -0,0 +1,66 @@
+name: linux-mips64b-edgerouterpro
+kind: chunk
+configure-commands:
+- |
+ git status
+ make cavium_octeon_defconfig
+ scripts/config -e PACKET
+ scripts/config -e UNIX
+ scripts/config -e NET_KEY
+ scripts/config -e INET
+ scripts/config -e IP_MULTICAST
+ scripts/config -e IP_PNP
+ scripts/config -e IP_PNP_DHCP
+ scripts/config -e IP_PNP_BOOTP
+ scripts/config --set-str UEVENT_HELPER_PATH ''
+ scripts/config -e DEVTMPFS
+ scripts/config -e DEVTMPFS_MOUNT
+ scripts/config -e BLK_DEV_LOOP
+ scripts/config -e BTRFS_FS
+ scripts/config -e TMPFS
+ scripts/config -e IKCONFIG
+ scripts/config -e IKCONFIG_PROC
+ scripts/config -e CGROUPS
+ scripts/config -e CONFIG_FHANDLE
+ scripts/config -e AUTOFS4_FS
+ scripts/config -e NETWORK_FILESYSTEMS
+ scripts/config -e NFS_FS
+ scripts/config -e NFS_V3
+ scripts/config -e ROOT_NFS
+ scripts/config -e LOCKD
+ scripts/config -e LOCKD_V4
+ scripts/config -e NFS_COMMON
+ scripts/config -e SUNRPC
+ scripts/config -e SYSVIPC
+ scripts/config -e CONFIG_POSIX_MQUEUE
+ scripts/config -e CPU_IDLE
+ scripts/config -e EXT4_FS
+ scripts/config -e EXT4_USE_FOR_EXT23
+ scripts/config -e MSDOS_FS
+ scripts/config -e VFAT_FS
+ scripts/config -e VLAN_8021Q
+ scripts/config -e BRIDGE_VLAN_FILTERING
+ scripts/config -m CONFIG_HW_RANDOM
+ scripts/config -m CONFIG_HW_RANDOM_OCTEON
+ scripts/config -e USB_SUPPORT
+ scripts/config -e CONFIG_USB
+ scripts/config -e CONFIG_USB_EHCI_HCD
+ scripts/config -e CONFIG_USB_OCTEON_EHCI
+ scripts/config -e CONFIG_USB_OHCI_HCD
+ scripts/config -e CONFIG_USB_OCTEON_OHCI
+ scripts/config -e CONFIG_MMC
+ scripts/config -e CONFIG_MMC_OCTEON
+ scripts/config -e CONFIG_OCTEON_USB
+ scripts/config -e CONFIG_USB_ARCH_HAS_HCD
+ scripts/config -e CONFIG_USB_STORAGE
+ scripts/config -d CONFIG_DEBUG_INFO
+ scripts/config -e CONFIG_STRIP_ASM_SYMS
+ yes '' | make oldconfig
+build-commands:
+- make $MAKEFLAGS
+install-commands:
+- |
+ mkdir -p "$DESTDIR"/boot
+ mkdir -p "$DESTDIR"/lib/modules
+ make INSTALL_PATH="$DESTDIR"/boot install
+ make INSTALL_MOD_PATH="$DESTDIR" modules_install
diff --git a/systems/build-system-mips64b.morph b/systems/build-system-mips64b.morph
new file mode 100644
index 0000000..4938efd
--- /dev/null
+++ b/systems/build-system-mips64b.morph
@@ -0,0 +1,36 @@
+name: build-system-mips64b
+kind: system
+description: The system that should be used for building all other Baserock systems for 64-bit MIPS computers.
+arch: mips64b
+strata:
+- name: build-essential
+ morph: strata/build-essential.morph
+- name: core
+ morph: strata/core.morph
+- name: foundation
+ morph: strata/foundation.morph
+- name: tools
+ morph: strata/tools.morph
+- name: morph-utils
+ morph: strata/morph-utils.morph
+- name: nfs
+ morph: strata/nfs.morph
+- name: ansible
+ morph: strata/ansible.morph
+- name: cloudinit-support
+ morph: strata/cloudinit-support.morph
+- name: openstack-clients
+ morph: strata/openstack-clients.morph
+- name: devtools
+ morph: strata/devtools.morph
+- name: bsp-mips64b-edgerouterpro
+ morph: strata/bsp-mips64b-edgerouterpro.morph
+configuration-extensions:
+- set-hostname
+- add-config-files
+- nfsboot
+- install-files
+- distbuild
+- fstab
+- mason
+- cloud-init