Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| docs:techref:image.makefile [2019/09/09 17:29] – obsolete tag optimization vgaetera | docs:techref:image.makefile [2020/02/26 22:16] (current) – [image/Makefile] mwarning | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== image/ | ====== image/ | ||
| - | FIXME | + | {{page> |
| - | This section is new and deliberately not linked too by other pages yet. once a person of some experience has a chance to look over this they may then choose to add it. | + | |
| - | I think its(this page) needed to clarify the intent, preferred style and function of the image/ | + | * I think its(this page) needed to clarify the intent, preferred style and function of the image/ |
| - | + | | |
| - | I believe | + | * Adding a new platform (new buildroot howto section?) |
| - | * Adding a new platform (new buildroot howto section?)\\ OR | + | * OpenWrt Buildroot - new platform (new page/how-to on adding platform support to the buildroot system) |
| - | * OpenWrt Buildroot - new platform (new page/how-to on adding platform support to the buildroot system) | + | |
| ===== image/ | ===== image/ | ||
| Line 13: | Line 11: | ||
| ===== Basic Function ===== | ===== Basic Function ===== | ||
| - | see example. | + | See example. |
| ==== Image/ | ==== Image/ | ||
| - | can be used to append data to image but often used simply to move to another directory such as $(KDIR) | + | Can be used to append data to image but often used simply to move to another directory such as $(KDIR) |
| - | for example: | + | Example: |
| cat $(LINUX_DIR)/ | cat $(LINUX_DIR)/ | ||
| Line 57: | Line 55: | ||
| define Image/ | define Image/ | ||
| - | |||
| $(BIN_DIR)/ | $(BIN_DIR)/ | ||
| - | |||
| endef | endef | ||
| Line 76: | Line 72: | ||
| define Image/ | define Image/ | ||
| $(call prepare_generic_squashfs, | $(call prepare_generic_squashfs, | ||
| - | |||
| endef | endef | ||
| Line 91: | Line 86: | ||
| Kernel options required by the platform + kernel version. | Kernel options required by the platform + kernel version. | ||
| - | | + | <code make> |
| - | CONFIG_QCOM_QFPROM=y | + | CONFIG_QCOM_PM=y |
| - | CONFIG_QCOM_RPMCC=y | + | CONFIG_QCOM_QFPROM=y |
| + | CONFIG_QCOM_RPMCC=y | ||
| + | </ | ||
| ===== files-4.x ===== | ===== files-4.x ===== | ||
| Line 104: | Line 101: | ||
| Platform wide device definition and common package set. Generally does not require modification when adding additional platform devices. | Platform wide device definition and common package set. Generally does not require modification when adding additional platform devices. | ||
| - | | + | <code make> |
| - | + | include $(TOPDIR)/ | |
| - | ARCH:=arm | + | |
| - | BOARD: | + | ARCH:=arm |
| - | BOARDNAME: | + | BOARD: |
| - | FEATURES: | + | BOARDNAME: |
| - | CPU_TYPE: | + | FEATURES: |
| - | CPU_SUBTYPE: | + | CPU_TYPE: |
| - | MAINTAINER: | + | CPU_SUBTYPE: |
| - | + | MAINTAINER: | |
| - | KERNEL_PATCHVER: | + | |
| - | + | KERNEL_PATCHVER: | |
| - | KERNELNAME: | + | |
| - | + | KERNELNAME: | |
| - | include $(INCLUDE_DIR)/ | + | |
| - | DEFAULT_PACKAGES += \ | + | include $(INCLUDE_DIR)/ |
| - | kmod-leds-gpio kmod-gpio-button-hotplug swconfig \ | + | DEFAULT_PACKAGES += \ |
| - | kmod-ata-core kmod-ata-ahci kmod-ata-ahci-platform \ | + | kmod-leds-gpio kmod-gpio-button-hotplug swconfig \ |
| - | kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport \ | + | kmod-ata-core kmod-ata-ahci kmod-ata-ahci-platform \ |
| - | kmod-usb3 kmod-usb-dwc3-of-simple kmod-usb-phy-qcom-dwc3 \ | + | kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport \ |
| - | kmod-ath10k-ct wpad-basic \ | + | kmod-usb3 kmod-usb-dwc3-of-simple kmod-usb-phy-qcom-dwc3 \ |
| - | uboot-envtools | + | kmod-ath10k-ct wpad-basic \ |
| - | + | uboot-envtools | |
| - | $(eval $(call BuildTarget)) | + | |
| + | $(eval $(call BuildTarget)) | ||
| + | </ | ||
| ===== image/ | ===== image/ | ||
| Device specific image creation parameters and image generation functions. | Device specific image creation parameters and image generation functions. | ||
| - | | + | <code make> |
| - | DEVICE_DTS := qcom-ipq8065-nbg6817 | + | define Device/ |
| - | KERNEL_SIZE := 4096k | + | DEVICE_DTS := qcom-ipq8065-nbg6817 |
| - | BLOCKSIZE := 64k | + | KERNEL_SIZE := 4096k |
| - | BOARD_NAME := nbg6817 | + | BLOCKSIZE := 64k |
| - | RAS_BOARD := NBG6817 | + | BOARD_NAME := nbg6817 |
| - | RAS_ROOTFS_SIZE := 20934k | + | RAS_BOARD := NBG6817 |
| - | RAS_VERSION := " | + | RAS_ROOTFS_SIZE := 20934k |
| - | SUPPORTED_DEVICES += nbg6817 | + | RAS_VERSION := " |
| - | | + | SUPPORTED_DEVICES += nbg6817 |
| - | DEVICE_PACKAGES := ath10k-firmware-qca9984-ct e2fsprogs kmod-fs-ext4 losetup | + | DEVICE_VENDOR |
| - | $(call Device/ | + | DEVICE_MODEL := NBG6817 |
| - | endef | + | DEVICE_PACKAGES := ath10k-firmware-qca9984-ct e2fsprogs kmod-fs-ext4 losetup |
| - | TARGET_DEVICES += zyxel_nbg6817 | + | $(call Device/ |
| + | endef | ||
| + | TARGET_DEVICES += zyxel_nbg6817 | ||
| + | </ | ||
| ===== base-files ===== | ===== base-files ===== | ||
| Line 152: | Line 154: | ||
| ===== profiles/ | ===== profiles/ | ||
| Board core firmware. | Board core firmware. | ||
| - | |||
| - | {{tag> | ||