From cccb26af3cf48fe74e506dd493806701bbdbed5e Mon Sep 17 00:00:00 2001 From: makefu Date: Fri, 4 Jan 2013 10:00:20 +0700 Subject: refactor minikrebs profiles ./prepare prepares the openwrt build environment and copies the requested profile files into build environment --- minikrebs/profiles/README | 4 + minikrebs/profiles/camkrebs/custom_make | 3 + .../camkrebs/customfiles/etc/config/mjpg-streamer | 7 + .../camkrebs/customfiles/etc/config/network | 9 + .../profiles/camkrebs/customfiles/etc/rc.local | 1 + minikrebs/profiles/camkrebs/customfiles/etc/shadow | 5 + minikrebs/profiles/camkrebs/doc/lazorcam_druck.svg | 231 --------------------- minikrebs/profiles/heckenkrebs/custom_make | 2 + minikrebs/profiles/init | 25 +++ 9 files changed, 56 insertions(+), 231 deletions(-) create mode 100644 minikrebs/profiles/README create mode 100644 minikrebs/profiles/camkrebs/custom_make create mode 100644 minikrebs/profiles/camkrebs/customfiles/etc/config/mjpg-streamer create mode 100644 minikrebs/profiles/camkrebs/customfiles/etc/config/network create mode 100644 minikrebs/profiles/camkrebs/customfiles/etc/rc.local create mode 100644 minikrebs/profiles/camkrebs/customfiles/etc/shadow delete mode 100644 minikrebs/profiles/camkrebs/doc/lazorcam_druck.svg create mode 100755 minikrebs/profiles/heckenkrebs/custom_make create mode 100755 minikrebs/profiles/init (limited to 'minikrebs/profiles') diff --git a/minikrebs/profiles/README b/minikrebs/profiles/README new file mode 100644 index 00000000..fc1e8945 --- /dev/null +++ b/minikrebs/profiles/README @@ -0,0 +1,4 @@ + +Every profile must have a `custom_make` script which builds the image for the +profile. This script also can contain which customizes the image files before +building. diff --git a/minikrebs/profiles/camkrebs/custom_make b/minikrebs/profiles/camkrebs/custom_make new file mode 100644 index 00000000..752a7bfe --- /dev/null +++ b/minikrebs/profiles/camkrebs/custom_make @@ -0,0 +1,3 @@ +#!/bin/sh + +make image PROFILE=TLWR703 PACKAGES="tinc ip kmod-ipv6 radvd kmod-fs-ext4 wireless-tools kmod-usb-core kmod-usb2 -kmod-ppp -kmod-pppoe -kmod-pppox -ppp -ppp-mod-pppoe -dnsmasq kmod-video-uvc mjpg-streamer" FILES=customfiles/ diff --git a/minikrebs/profiles/camkrebs/customfiles/etc/config/mjpg-streamer b/minikrebs/profiles/camkrebs/customfiles/etc/config/mjpg-streamer new file mode 100644 index 00000000..bb4f81ec --- /dev/null +++ b/minikrebs/profiles/camkrebs/customfiles/etc/config/mjpg-streamer @@ -0,0 +1,7 @@ +config mjpg-streamer core + option enabled "1" + option device "/dev/video0" + option resolution "1280x1024" + option fps "5" + option www "/www/webcam" + option port "80" diff --git a/minikrebs/profiles/camkrebs/customfiles/etc/config/network b/minikrebs/profiles/camkrebs/customfiles/etc/config/network new file mode 100644 index 00000000..c459c4e0 --- /dev/null +++ b/minikrebs/profiles/camkrebs/customfiles/etc/config/network @@ -0,0 +1,9 @@ +config interface 'loopback' + option ifname 'lo' + option proto 'static' + option ipaddr '127.0.0.1' + option netmask '255.0.0.0' + +config interface 'lan' + option ifname 'eth0' + option proto 'dhcp' diff --git a/minikrebs/profiles/camkrebs/customfiles/etc/rc.local b/minikrebs/profiles/camkrebs/customfiles/etc/rc.local new file mode 100644 index 00000000..3e91b57c --- /dev/null +++ b/minikrebs/profiles/camkrebs/customfiles/etc/rc.local @@ -0,0 +1 @@ +insmod uvcvideo diff --git a/minikrebs/profiles/camkrebs/customfiles/etc/shadow b/minikrebs/profiles/camkrebs/customfiles/etc/shadow new file mode 100644 index 00000000..251abaf5 --- /dev/null +++ b/minikrebs/profiles/camkrebs/customfiles/etc/shadow @@ -0,0 +1,5 @@ +root:$1$spkPLKf6$KEM1l1DgouvYjeBfkT2wW1:0:0:99999:7::: +daemon:*:0:0:99999:7::: +ftp:*:0:0:99999:7::: +network:*:0:0:99999:7::: +nobody:*:0:0:99999:7::: diff --git a/minikrebs/profiles/camkrebs/doc/lazorcam_druck.svg b/minikrebs/profiles/camkrebs/doc/lazorcam_druck.svg deleted file mode 100644 index 4f376059..00000000 --- a/minikrebs/profiles/camkrebs/doc/lazorcam_druck.svg +++ /dev/null @@ -1,231 +0,0 @@ - - - - - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - LAZORCAM - Boot: - Lazorcam hat Stom wenn die blaue LED leuchtet- Wenn die LED vom Zustand "Blinkend" in den Zustand "durchgängig Leuchtend" gewechselt ist, ist der Bootvorgang abgeschlossen - Schaue dem Lazor beim Arbeiten zu - - Erreichbarkeit: HTTP: VLC: File -> Open Network Stream -> - http://lazorcam.shack/ - http://lazorcam.shack/?action=stream - - diff --git a/minikrebs/profiles/heckenkrebs/custom_make b/minikrebs/profiles/heckenkrebs/custom_make new file mode 100755 index 00000000..4694530b --- /dev/null +++ b/minikrebs/profiles/heckenkrebs/custom_make @@ -0,0 +1,2 @@ +#!/bin/sh +make image PROFILE=TLWR703 PACKAGES="tinc curl kmod-ipv6 kmod-fs-ext4 radvd ip wireless-tools block-mount kmod-usb-core kmod-usb2 kmod-usb-storage -kmod-ppp -kmod-pppoe -kmod-pppox -ppp -ppp-mod-pppoe" FILES=customfiles/ diff --git a/minikrebs/profiles/init b/minikrebs/profiles/init new file mode 100755 index 00000000..b7c1e8e9 --- /dev/null +++ b/minikrebs/profiles/init @@ -0,0 +1,25 @@ +#!/bin/sh + +cd $(dirname $(readlink -f $0)) +if [ ! -e Makefile ] ;then + echo "ImageBuilder not checked out yet" + echo "try running ../prepare $$PROFILE" + exit 1 +fi + +echo +if [ -e ./custom_make ];then + echo "Starting Custom Make" + sh ./custom_make +else + echo "No Custom Make Script exists, bailing out!" + exit 1 +fi + +echo +cat << EOF +finished building +You can use the following images: + Factory : $PWD/bin/ar71xx/openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-factory.bin + System Upgrade: $PWD/bin/ar71xx/openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-sysupgrade.bin +EOF -- cgit v1.2.3