mirror of https://github.com/hak5/openwrt.git
octeon: clean up image build code
Use the generic "sysupgrade-nand" build step to pack the sysupgrade file, it performs the same steps as the inline "tar-file" macro. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
parent
a1681ce39b
commit
fccc4298df
|
@ -7,25 +7,14 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
include $(INCLUDE_DIR)/image.mk
|
include $(INCLUDE_DIR)/image.mk
|
||||||
|
|
||||||
DEVICE_VARS += KERNEL_PREFIX FILESYSTEMS
|
|
||||||
|
|
||||||
define Device/Default
|
define Device/Default
|
||||||
PROFILES = Default $$(DEVICE_NAME)
|
PROFILES = Default $$(DEVICE_NAME)
|
||||||
|
BOARD_NAME := $(BOARD)
|
||||||
KERNEL_NAME := vmlinux.elf
|
KERNEL_NAME := vmlinux.elf
|
||||||
KERNEL_INITRAMFS_NAME := vmlinux-initramfs.elf
|
KERNEL_INITRAMFS_NAME := vmlinux-initramfs.elf
|
||||||
KERNEL := kernel-bin | strip-kernel | patch-cmdline
|
KERNEL := kernel-bin | strip-kernel | patch-cmdline
|
||||||
IMAGES := sysupgrade.tar
|
IMAGES := sysupgrade.tar
|
||||||
FILESYSTEMS := squashfs
|
IMAGE/sysupgrade.tar := sysupgrade-nand
|
||||||
IMAGE/sysupgrade.tar := tar-file $$$$(FILESYSTEMS)
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Build/tar-file
|
|
||||||
mkdir -p $(KDIR)/sysupgrade-$(DEVICE_NAME)/
|
|
||||||
echo "BOARD=$(BOARD)" > $(KDIR)/sysupgrade-$(DEVICE_NAME)/CONTROL
|
|
||||||
$(CP) $(KDIR_KERNEL_IMAGE) $(KDIR)/sysupgrade-$(DEVICE_NAME)/kernel
|
|
||||||
$(CP) $(KDIR)/root.$(1) $(KDIR)/sysupgrade-$(DEVICE_NAME)/root
|
|
||||||
(cd $(KDIR); $(TAR) cvf \
|
|
||||||
$@ sysupgrade-$(DEVICE_NAME))
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/strip-kernel
|
define Build/strip-kernel
|
||||||
|
|
Loading…
Reference in New Issue