This adds Makefile changes to support the Exegin Q5x family of boards.

Signed-off-by: Owen Kirby <o...@exegin.com>

Index: target/linux/at91/Makefile
===================================================================
--- target/linux/at91/Makefile  (revision 35893)
+++ target/linux/at91/Makefile  (working copy)
@@ -10,7 +10,7 @@
 BOARD:=at91
 MAINTAINER:=Claudio Mignanti <c.migna...@gmail.com>
 BOARDNAME:=Atmel AT91
-FEATURES:=squashfs jffs2 targz ext2 usb
+FEATURES:=squashfs jffs2 targz ext2 usb usbgadget
 CFLAGS:=-Os -pipe -march=armv5te -mtune=arm926ej-s -fno-caller-saves
 SUBTARGETS:=9g20 9260 9263
 
@@ -19,7 +19,7 @@
 
 include $(INCLUDE_DIR)/target.mk
 
-DEFAULT_PACKAGES+= kmod-usb-ohci
+DEFAULT_PACKAGES+= kmod-usb-ohci kmod-usb-gadget kmod-usb-eth-gadget
 KERNELNAME:="uImage"
 
 $(eval $(call BuildTarget))
Index: target/linux/at91/base-files.mk
===================================================================
--- target/linux/at91/base-files.mk     (revision 0)
+++ target/linux/at91/base-files.mk     (revision 0)
@@ -0,0 +1,5 @@
+define Package/base-files/install-target
+       rm -f $(1)/etc/config/network
+endef
+
+
Index: target/linux/at91/9g20/target.mk
===================================================================
--- target/linux/at91/9g20/target.mk    (revision 35893)
+++ target/linux/at91/9g20/target.mk    (working copy)
@@ -4,9 +4,11 @@
 
 SUBTARGET:=9g20
 BOARDNAME:=AT91SAM9g20 Based board
+DEFAULT_PACKAGES+=kmod-usb-serial-gadget
 
 define Target/Description
        Build images for AT91SAM9g20 based board, supported board:
                * Acmesystems NetusG20
                * Taskit Stamp9G20 Evaluation Board
+               * Exegin Q5x (rev5)
 endef
Index: target/linux/at91/image/Makefile
===================================================================
--- target/linux/at91/image/Makefile    (revision 35893)
+++ target/linux/at91/image/Makefile    (working copy)
@@ -18,15 +18,12 @@
 endef
 
 define Image/Prepare
+       cp $(LINUX_DIR)/arch/arm/boot/uImage $(KDIR)/uImage
 endef
 
 define Image/BuildKernel
-       mkdir -p $(BIN_DIR)
-       mkimage -A arm -T kernel -C none -a 0x20008000 -e 0x20008000 -n 
linux-2.6 \
-               -d $(LINUX_DIR)/arch/arm/boot/Image 
$(BIN_DIR)/$(IMG_PREFIX)-uImage
-       if [ $(CONFIG_FLEXIBITY_ROOT) ]; then \
-               $(INSTALL_BIN) $(BIN_DIR)/$(IMG_PREFIX)-uImage 
$(TARGET_DIR)/uImage ; \
-       fi
+# do mach-id fixup here, if needed
+       cp $(KDIR)/uImage $(BIN_DIR)/$(IMG_PREFIX)-uImage
 endef
 
 define Image/Build
Index: package/kernel/modules/usb.mk
===================================================================
--- package/kernel/modules/usb.mk       (revision 35893)
+++ package/kernel/modules/usb.mk       (working copy)
@@ -71,6 +71,22 @@
 $(eval $(call KernelPackage,usb-eth-gadget))
 
 
+define KernelPackage/usb-serial-gadget
+  TITLE:=USB Serial Gadget support
+  KCONFIG:=CONFIG_USB_G_SERIAL
+  DEPENDS:=+kmod-usb-gadget
+  FILES:=$(LINUX_DIR)/drivers/usb/gadget/g_serial.ko
+  AUTOLOAD:=$(call AutoLoad,52,g_serial)
+  $(call AddDepends/usb)
+endef
+
+define KernelPackage/usb-serial-gadget/description
+  Kernel support for USB Serial Gadget.
+endef
+
+$(eval $(call KernelPackage,usb-serial-gadget))
+
+
 define KernelPackage/usb-uhci
   TITLE:=Support for UHCI controllers
   KCONFIG:= \

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to