summaryrefslogtreecommitdiff
path: root/conf/machine/wrt54.conf
blob: 856ca97013fe9274addd280e29b28dbdc2fc9cc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#@TYPE: Machine
#@NAME: Linksys WRT54G(S)
#@DESCRIPTION: Machine configuration for the MIPS based WRT54G(S) devices

TARGET_ARCH = "mipsel"
TARGET_CC_ARCH = "-Os"
IPKG_ARCHS = "all mipsel ${MACHINE}"

SERIAL_CONSOLE = "tts/0"

BOOTSTRAP_EXTRA_DEPENDS += "virtual/kernel"
BOOTSTRAP_EXTRA_RDEPENDS += "kernel-module-wl kernel-module-et kernel-module-wlcompat"
BOOTSTRAP_EXTRA_RDEPENDS += "wrt-init wrt-utils"
BOOTSTRAP_EXTRA_RRECOMMENDS += ""

PREFERRED_PROVIDER_virtual/kernel = "linux-wrt"

# build jffs2 and squashfs-lzma images
IMAGE_FSTYPES = "squashfs-lzma jffs2"

EXTRA_IMAGECMD_jffs2 = "--pad --little-endian --squash --eraseblock=0x10000 -n" 

# squashfs-lzma image type (could be in bitbake.conf like the others)
IMAGE_DEPENDS_squashfs-lzma = "squashfs-tools-native"
IMAGE_CMD_squashfs-lzma = "mksquashfs-lzma ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.squashfs-lzma ${EXTRA_IMAGECMD} -noappend"
EXTRA_IMAGECMD_squashfs-lzma = "-root-owned -le"

# build trx images
INHERIT += "wrt-image"

# strip even more:
DEPENDS += "elfkickers-native"
export STRIP = "sstrip"