OpenWrt – Blame information for rev 3

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 #
2 # Copyright (C) 2012-2014 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 include $(TOPDIR)/rules.mk
8 include $(INCLUDE_DIR)/image.mk
9  
10 FAT32_BLOCK_SIZE=1024
11 FAT32_BLOCKS=$(shell echo $$(($(CONFIG_OMAP_SD_BOOT_PARTSIZE)*1024*1024/$(FAT32_BLOCK_SIZE))))
12  
13 UBIFS_OPTS = -F -m 2048 -e 124KiB -c 4096 -U
14 UBI_OPTS = -m 2048 -p 128KiB -s 512 -O 2048
15  
16 define Build/omap-sdcard
17 rm -f $@.boot
18 mkfs.fat $@.boot -C $(FAT32_BLOCKS)
19  
20 mcopy -i $@.boot $(STAGING_DIR_IMAGE)/$(DEVICE_NAME)/MLO ::MLO
21 mcopy -i $@.boot $(STAGING_DIR_IMAGE)/$(DEVICE_NAME)/u-boot.img ::u-boot.img
22 mcopy -i $@.boot $(STAGING_DIR_IMAGE)/$(DEVICE_NAME)/uEnv.txt ::uEnv.txt
23 mmd -i $@.boot ::/dtbs
24 mcopy -i $@.boot $(DTS_DIR)/$(DEVICE_DTS).dtb ::/dtbs/$(DEVICE_DTS).dtb
25 mcopy -i $@.boot $(IMAGE_KERNEL) ::/zImage
26 ./gen_omap_sdcard_img.sh $@ \
27 $@.boot \
28 $(IMAGE_ROOTFS) \
29 $(CONFIG_OMAP_SD_BOOT_PARTSIZE) \
30 $(CONFIG_TARGET_ROOTFS_PARTSIZE)
31 rm -f $@.boot
32 endef
33  
34 define Device/Default
35 PROFILES := Default
36 DEVICE_VARS :=
37 KERNEL_NAME := zImage
38 KERNEL := kernel-bin
39 IMAGES := sdcard.img.gz
40 IMAGE/sdcard.img.gz := omap-sdcard | append-metadata | gzip
3 office 41 SUPPORTED_DEVICES = $$(DEVICE_DTS)
1 office 42 endef
43  
44 #uboot-omap-am335x_evm uboot-omap-omap3_beagle uboot-omap-omap3_overo uboot-omap-omap4_panda
45  
3 office 46 define Device/am335x-evm
1 office 47 DEVICE_TITLE := TI AM335x EVM
48 DEVICE_DTS := am335x-evm
49 endef
50  
3 office 51 TARGET_DEVICES += am335x-evm
1 office 52  
3 office 53 define Device/am335x-boneblack
1 office 54 DEVICE_TITLE := TI AM335x BeagleBone Black
55 DEVICE_DTS := am335x-boneblack
56 endef
57  
3 office 58 TARGET_DEVICES += am335x-boneblack
1 office 59  
3 office 60 define Device/omap4-panda
1 office 61 DEVICE_TITLE := OMAP4 TI pandaboard
62 DEVICE_DTS := omap4-panda
63 DEVICE_PACKAGES := kmod-usb-net-smsc95xx
64 endef
65  
3 office 66 TARGET_DEVICES += omap4-panda
1 office 67  
3 office 68 define Device/omap3-beagle
1 office 69 DEVICE_TITLE := OMAP3 TI beagleboard
70 DEVICE_DTS := omap3-beagle
71 # beagleboard doesn't have a network interface, support most common usb net
72 DEVICE_PACKAGES := kmod-usb-net \
73 kmod-usb-net-asix kmod-usb-net-asix-ax88179 kmod-usb-net-hso \
74 kmod-usb-net-kaweth kmod-usb-net-pegasus kmod-usb-net-mcs7830 \
75 kmod-usb-net-smsc95xx kmod-usb-net-dm9601-ether
76 endef
77  
3 office 78 TARGET_DEVICES += omap3-beagle
1 office 79  
80 $(eval $(call BuildImage))