summaryrefslogtreecommitdiff
path: root/recipes-bsp/barebox/barebox_%.bbappend
blob: e168747df1e315295c70b7556b543a8bff5682d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
LOCALVERSION = "-${@legitimize_package_name(d.getVar('DISTRO_VERSION', True))}"

python do_env_append() {
    env_add(d, "boot/initrd",
"""#!/bin/sh
path="/mnt/tftp"

global.bootm.image="${path}/${global.user}-linux-${global.hostname}"

global.bootm.oftree="${path}/${global.user}-oftree-${global.hostname}"
global.bootm.initrd="${path}/${global.user}-phytec-initramfs-image-${global.hostname}.cpio.gz"

global.linux.bootargs.dyn.root="root=/dev/ram0 rdinit=/bin/busybox init  ip=$eth0.ipaddr:$eth0.serverip:$eth0.gateway:$eth0.netmask:: quiet"
""")
}