[OpenWrt-Devel] [RFC 1/2] Add support for the apm821xx Device Target

Imre Kaloz kaloz at openwrt.org
Fri Apr 1 08:35:56 EDT 2016


Hi Chris,

On Fri, 01 Apr 2016 03:46:09 +0200, Chris Blake <chrisrblake93 at gmail.com>
wrote:

> This adds a new target for PowerPC APM821xx (464-based) boards, as well
> as adds support for the booke-wdt watchdog package.
>
> Signed-off-by: Chris Blake <chrisrblake93 at gmail.com>

Not bad at all for first try :)

> diff --git a/include/target.mk b/include/target.mk
> index 76fbd99..6d036a0 100644
> --- a/include/target.mk
> +++ b/include/target.mk
> @@ -253,6 +253,7 @@ ifeq ($(DUMP),1)
>      CPU_CFLAGS_8540:=-mcpu=8540
>      CPU_CFLAGS_405:=-mcpu=405
>      CPU_CFLAGS_440:=-mcpu=440
> +    CPU_CFLAGS_464:=-mcpu=464
>    endif
>    ifeq ($(ARCH),sparc)
>      CPU_TYPE = sparc

These guys do have an FPU, so please go with CPU_CFLAGS_464fp:=-mcpu=464fp

> --- /dev/null
> +++ b/target/linux/apm821xx/Makefile
> @@ -0,0 +1,30 @@
> +#
> +# Copyright (C) 2016 OpenWrt.org
> +#
> +# This is free software, licensed under the GNU General Public License  
> v2.
> +# See /LICENSE for more information.
> +#
> +include $(TOPDIR)/rules.mk
> +
> +ARCH:=powerpc
> +BOARD:=apm821xx
> +BOARDNAME:=AppliedMicro APM821xx
> +CPU_TYPE:=464

464fp

> +FEATURES:=squashfs nand rtc ramdisk

fpu

> +CONFIG_BLUESTONE=y

I doubt we support that here.

> +CONFIG_BOOKE=y
> +CONFIG_BOUNCE=y
> +CONFIG_CANYONLANDS=n

"is not set". Please refresh the config file using the buildsystem.

> --- /dev/null
> +++ b/target/linux/apm821xx/generic/target.mk
> @@ -0,0 +1,12 @@
> +#
> +# Copyright (C) 2016 OpenWrt.org
> +#
> +# This is free software, licensed under the GNU General Public License  
> v2.
> +# See /LICENSE for more information.
> +#
> +
> +BOARDNAME:=Generic
> +
> +define Target/Description
> +	Build firmware images for generic APM821xx based boards.
> +endef

There's not reason to create any subtargets for now.




Imre
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list