1 DESCRIPTION
= "APEX Boot Loader"
4 HOMEPAGE
= "http://wiki.buici.com/twiki/bin/view/Main/ApexBootloader"
10 SRC_URI
= "ftp://ftp.buici.com/pub/apex/apex-${PV}.tar.gz \
12 S
= $
{WORKDIR
}/apex
-$
{PV
}
14 CMDLINE_CONSOLE
= "console=${@bb.data.getVar("KERNEL_CONSOLE
",d,1) or "ttyS0
"}"
16 CMDLINE_ROOT ?
= "root=/dev/mtdblock4 rootfstype=jffs2 rw"
20 EXTRA_OEMAKE_append
= " CROSS_COMPILE=${TOOLCHAIN_PATH}/bin/${HOST_PREFIX}"
23 oenote make $
{PARALLEL_MAKE
} CROSS_COMPILE
=$
{TOOLCHAIN_PATH
}/bin/$
{TARGET_PREFIX
} "$@"
24 make $
{PARALLEL_MAKE
} LDFLAGS
= CROSS_COMPILE
=$
{TOOLCHAIN_PATH
}/bin/$
{TARGET_PREFIX
} "$@" || die
"oe_runmake failed"
27 # Set the correct CONFIG_USER_xxx_ENDIAN
and CONFIG_CMDLINE at the head
28 # of the .config file
and remove any settings in defconfig
then append
29 # defconfig
to .config
32 if [ "x${SITEINFO_ENDIANNESS}" = "xbe" ]; then
33 sed
-e 's
/.
*CONFIG_USER_BIGENDIAN.
*/CONFIG_USER_BIGENDIAN
=y
/' \
34 -e 's
/.
*CONFIG_BIGENDIAN.
*/CONFIG_BIGENDIAN
=y
/' \
35 -e 's
/.
*CONFIG_TARGET_DESCRIPTION.
*/CONFIG_TARGET_DESCRIPTION
=\"OpenEmbedded NSLU2\
/BE
(8MiB Flash
)\"/' \
36 -e 's|CONFIG_ENV_DEFAULT_CMDLINE
=|CONFIG_ENV_DEFAULT_CMDLINE
=\"$
{CMDLINE_CONSOLE
} $
{CMDLINE_ROOT
} $
{CMDLINE_DEBUG
}\"|' \
37 -e 's|CONFIG_ENV_DEFAULT_CMDLINE_ALT
=|CONFIG_ENV_DEFAULT_CMDLINE_ALT
=\"$
{CMDLINE_CONSOLE
} $
{CMDLINE_ROOT
} $
{CMDLINE_DEBUG
}\"|' \
38 $
{WORKDIR
}/defconfig
> $
{S
}/.config
39 elif
[ "x${SITEINFO_ENDIANNESS}" = "xle" ]; then
40 sed
-e 's
/.
*CONFIG_USER_LITTLEENDIAN.
*/CONFIG_USER_LITTLEENDIAN
=y
/' \
41 -e 's
/.
*CONFIG_LITTLEENDIAN.
*/CONFIG_LITTLEENDIAN
=y
/' \
42 -e 's
/.
*CONFIG_TARGET_DESCRIPTION.
*/CONFIG_TARGET_DESCRIPTION
=\"OpenEmbedded NSLU2\
/LE
(8MiB Flash
)\"/' \
43 -e 's|CONFIG_ENV_DEFAULT_CMDLINE
=|CONFIG_ENV_DEFAULT_CMDLINE
=\"$
{CMDLINE_CONSOLE
} $
{CMDLINE_ROOT
} $
{CMDLINE_DEBUG
}\"|' \
44 -e 's|CONFIG_ENV_DEFAULT_CMDLINE_ALT
=|CONFIG_ENV_DEFAULT_CMDLINE_ALT
=\"$
{CMDLINE_CONSOLE
} $
{CMDLINE_ROOT
} $
{CMDLINE_DEBUG
}\"|' \
45 $
{WORKDIR
}/defconfig
> $
{S
}/.config
47 oefatal do_configure cannot determine endianess
52 DEPENDS
+= "devio-native"
55 install
-d $
{STAGING_LOADER_DIR
}
56 if [ "x${SITEINFO_ENDIANNESS}" = "xbe" ]; then
57 cp src
/arch
-arm
/rom
/apex.
bin $
{STAGING_LOADER_DIR
}/apex
-nslu2.
bin
58 elif
[ "x${SITEINFO_ENDIANNESS}" = "xle" ]; then
59 devio '
<<'src
/arch
-arm
/rom
/apex.
bin >$
{STAGING_LOADER_DIR
}/apex
-nslu2.
bin 'xp $
,4'
61 oefatal do_populate_sysroot cannot determine endianess
65 SRC_URI
[md5sum
] = "22fb46e76c8221c7bcc9734602367460"
66 SRC_URI
[sha256sum
] = "472e12897931d9e5dcf2d1e3332acfc467aafd0f62e612896a9c71dd0d16d950"