From ee5b7c28599250ae68d2e421710df10dfea8d77c Mon Sep 17 00:00:00 2001 From: Luka Perkov Date: Fri, 18 Oct 2013 00:02:45 +0000 Subject: imx6: reorganize build system Changes include: * switching to profiles * adding ubifs support * building image for GW54XX board Signed-off-by: Luka Perkov SVN-Revision: 38441 --- target/linux/imx6/profiles/100-Generic.mk | 19 ---------- target/linux/imx6/profiles/100-generic.mk | 19 ++++++++++ target/linux/imx6/profiles/110-wandboard.mk | 15 ++++++++ target/linux/imx6/profiles/120-gateworks.mk | 57 +++++++++++++++++++++++++++++ 4 files changed, 91 insertions(+), 19 deletions(-) delete mode 100644 target/linux/imx6/profiles/100-Generic.mk create mode 100644 target/linux/imx6/profiles/100-generic.mk create mode 100644 target/linux/imx6/profiles/110-wandboard.mk create mode 100644 target/linux/imx6/profiles/120-gateworks.mk (limited to 'target/linux/imx6/profiles') diff --git a/target/linux/imx6/profiles/100-Generic.mk b/target/linux/imx6/profiles/100-Generic.mk deleted file mode 100644 index 91ca3696ad..0000000000 --- a/target/linux/imx6/profiles/100-Generic.mk +++ /dev/null @@ -1,19 +0,0 @@ -# -# Copyright (C) 2013 OpenWrt.org -# -# This is free software, licensed under the GNU General Public License v2. -# See /LICENSE for more information. -# - -define Profile/Generic - NAME:=Generic (default) - PACKAGES:= \ - kmod-thermal-imx kmod-usb-chipidea kmod-usb-mxs-phy \ - uboot-envtools -endef - -define Profile/Generic/Description - Package set compatible with most Freescale i.MX 6 based boards. -endef - -$(eval $(call Profile,Generic)) diff --git a/target/linux/imx6/profiles/100-generic.mk b/target/linux/imx6/profiles/100-generic.mk new file mode 100644 index 0000000000..91ca3696ad --- /dev/null +++ b/target/linux/imx6/profiles/100-generic.mk @@ -0,0 +1,19 @@ +# +# Copyright (C) 2013 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +define Profile/Generic + NAME:=Generic (default) + PACKAGES:= \ + kmod-thermal-imx kmod-usb-chipidea kmod-usb-mxs-phy \ + uboot-envtools +endef + +define Profile/Generic/Description + Package set compatible with most Freescale i.MX 6 based boards. +endef + +$(eval $(call Profile,Generic)) diff --git a/target/linux/imx6/profiles/110-wandboard.mk b/target/linux/imx6/profiles/110-wandboard.mk new file mode 100644 index 0000000000..4fa49ec6a6 --- /dev/null +++ b/target/linux/imx6/profiles/110-wandboard.mk @@ -0,0 +1,15 @@ +# +# Copyright (C) 2013 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +define Profile/IMX6DL_WANDBOARD + NAME:=Wandboard Dual + PACKAGES:= \ + kmod-thermal-imx kmod-usb-chipidea kmod-usb-mxs-phy \ + uboot-envtools +endef + +$(eval $(call Profile,IMX6DL_WANDBOARD)) diff --git a/target/linux/imx6/profiles/120-gateworks.mk b/target/linux/imx6/profiles/120-gateworks.mk new file mode 100644 index 0000000000..9d43537ba7 --- /dev/null +++ b/target/linux/imx6/profiles/120-gateworks.mk @@ -0,0 +1,57 @@ +# +# Copyright (C) 2013 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +define Profile/IMX6Q_GW5400_A + NAME:=Gateworks Ventana GW5400-A + PACKAGES:= \ + kmod-thermal-imx kmod-usb-chipidea kmod-usb-mxs-phy +endef + +define Profile/IMX6Q_GW5400_A/Description + The Gateworks GW5400-A family of products is based on the Freescale i.MX6Q SoC + and offers a large variety of peripherals such as: + + * DDR3 + * SPI FLASH + * 6x PCIe (3x with USB) + * Optional expansion for additional USB/PCI based periperhals + * 1x USB EHCI + * 1x USB OTG + * HDMI Audio/Video in/out + * Analog Video in/out + * Analog Audio in/out + * Gateworks System Controller +endef + +$(eval $(call Profile,IMX6Q_GW5400_A)) + +define Profile/IMX6Q_GW54XX + NAME:=Gateworks Ventana GW54XX + PACKAGES:= \ + kmod-thermal-imx kmod-usb-chipidea kmod-usb-mxs-phy +endef + +define Profile/IMX6Q_GW54XX/Description + The Gateworks GW54xx family of products is based on the Freescale i.MX6Q SoC + and offers a large variety of peripherals such as: + + * DDR3 + * NAND FLASH + * 6x PCIe (3x with USB) + * Optional expansion for additional USB/PCI based periperhals + * 1x USB EHCI + * 1x USB OTG + * HDMI Audio/Video in/out + * Analog Video in/out + * Analog Audio in/out + * Gateworks System Controller +endef + +IMX6Q_GW54XX_UBIFS_OPTS:="-m 2048 -e 124KiB -c 1912" +IMX6Q_GW54XX_UBI_OPTS:="-m 2048 -p 128KiB -s 2048" + +$(eval $(call Profile,IMX6Q_GW54XX)) -- cgit v1.2.3