summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--board/minnowboard-max/genimage.cfg34
-rwxr-xr-xboard/minnowboard-max/post-build.sh2
-rwxr-xr-xboard/minnowboard-max/post-image.sh13
-rw-r--r--board/minnowboard-max/readme.txt25
-rw-r--r--board/minnowboard/grub-minnowboard-max.cfg (renamed from board/minnowboard-max/grub.cfg)0
-rw-r--r--board/minnowboard/grub-minnowboard.cfg (renamed from board/minnowboard/grub.cfg)0
-rw-r--r--board/minnowboard/linux-4.4.config (renamed from board/minnowboard-max/linux.config)0
-rwxr-xr-xboard/minnowboard/post-build.sh5
-rw-r--r--board/minnowboard/readme.txt8
-rw-r--r--configs/minnowboard_defconfig1
-rw-r--r--configs/minnowboard_max_defconfig7
11 files changed, 15 insertions, 80 deletions
diff --git a/board/minnowboard-max/genimage.cfg b/board/minnowboard-max/genimage.cfg
deleted file mode 100644
index 6cf7874307..0000000000
--- a/board/minnowboard-max/genimage.cfg
+++ /dev/null
@@ -1,34 +0,0 @@
-# Create an image of the efi partition
-image efi-part.vfat {
- vfat {
- file startup.nsh {
- image = "efi-part/startup.nsh"
- }
- file EFI {
- image = "efi-part/EFI"
- }
- file bzImage {
- image = "bzImage"
- }
- }
- size=10M
-}
-
-# Create the sdcard image, pulling in
-# * the image created by buildroot
-# * the efi-partition created above
-image sdcard.img {
- hdimage {
- }
-
- partition boot {
- partition-type = 0xEF
- image = "efi-part.vfat"
- }
-
- partition rootfs {
- partition-type = 0x83
- image = "rootfs.ext4"
- size = 512M
- }
-}
diff --git a/board/minnowboard-max/post-build.sh b/board/minnowboard-max/post-build.sh
deleted file mode 100755
index 9f86d390f2..0000000000
--- a/board/minnowboard-max/post-build.sh
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-cp board/minnowboard-max/grub.cfg ${BINARIES_DIR}/efi-part/EFI/BOOT/grub.cfg
diff --git a/board/minnowboard-max/post-image.sh b/board/minnowboard-max/post-image.sh
deleted file mode 100755
index e90dd6b8cf..0000000000
--- a/board/minnowboard-max/post-image.sh
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/sh -e
-
-GENIMAGE_CFG="board/minnowboard-max/genimage.cfg"
-GENIMAGE_TMP="${BUILD_DIR}/genimage.tmp"
-
-rm -rf "${GENIMAGE_TMP}"
-
-genimage \
- --rootpath "${TARGET_DIR}" \
- --tmppath "${GENIMAGE_TMP}" \
- --inputpath "${BINARIES_DIR}" \
- --outputpath "${BINARIES_DIR}" \
- --config "${GENIMAGE_CFG}"
diff --git a/board/minnowboard-max/readme.txt b/board/minnowboard-max/readme.txt
deleted file mode 100644
index dfad2aba21..0000000000
--- a/board/minnowboard-max/readme.txt
+++ /dev/null
@@ -1,25 +0,0 @@
-How to get started with the Minnow Board MAX
-============================================
-
-1. Build
-
- Apply the defconfig:
-
- $ make minnowboard_max_defconfig
-
- Add any additional packages required and build:
-
- $ make
-
-2. Write the SD card
-
- The build process will create a SD card image in output/images.
- Write the image to an mSD card, insert into the Minnowboard MAX
- and power the board on.
-
- $ dd if=output/images/sdcard.img of=/dev/mmcblk0; sync
-
-3. Enjoy
-
-Additional information about this board can be found at
-http://www.minnowboard.org/ or http://wiki.minnowboard.org/MinnowBoard_MAX
diff --git a/board/minnowboard-max/grub.cfg b/board/minnowboard/grub-minnowboard-max.cfg
index f38db8f62b..f38db8f62b 100644
--- a/board/minnowboard-max/grub.cfg
+++ b/board/minnowboard/grub-minnowboard-max.cfg
diff --git a/board/minnowboard/grub.cfg b/board/minnowboard/grub-minnowboard.cfg
index 33a0f4aa8d..33a0f4aa8d 100644
--- a/board/minnowboard/grub.cfg
+++ b/board/minnowboard/grub-minnowboard.cfg
diff --git a/board/minnowboard-max/linux.config b/board/minnowboard/linux-4.4.config
index abb7fdce98..abb7fdce98 100644
--- a/board/minnowboard-max/linux.config
+++ b/board/minnowboard/linux-4.4.config
diff --git a/board/minnowboard/post-build.sh b/board/minnowboard/post-build.sh
index e3f4a92ec9..f3a11e99f0 100755
--- a/board/minnowboard/post-build.sh
+++ b/board/minnowboard/post-build.sh
@@ -1,2 +1,5 @@
#!/bin/sh
-cp board/minnowboard/grub.cfg ${BINARIES_DIR}/efi-part/EFI/BOOT/grub.cfg
+# args from BR2_ROOTFS_POST_SCRIPT_ARGS
+# $2 board name
+
+cp -v board/minnowboard/grub-${2}.cfg ${BINARIES_DIR}/efi-part/EFI/BOOT/grub.cfg
diff --git a/board/minnowboard/readme.txt b/board/minnowboard/readme.txt
index 3a24fdc162..8cf35b79c5 100644
--- a/board/minnowboard/readme.txt
+++ b/board/minnowboard/readme.txt
@@ -1,5 +1,5 @@
-How to get started with the MinnowBoard
-========================================
+How to get started with the MinnowBoard (MAX)
+=============================================
1. Build
@@ -7,6 +7,10 @@ How to get started with the MinnowBoard
$ make minnowboard_defconfig
+ Or, for the Minnowboard MAX board:
+
+ $ make minnowboard_max_defconfig
+
Add any additional packages required and build:
$ make
diff --git a/configs/minnowboard_defconfig b/configs/minnowboard_defconfig
index 25c63ccbee..f4afc86bf8 100644
--- a/configs/minnowboard_defconfig
+++ b/configs/minnowboard_defconfig
@@ -6,6 +6,7 @@ BR2_x86_atom=y
BR2_TARGET_GENERIC_GETTY_PORT="ttyPCH0"
BR2_ROOTFS_POST_BUILD_SCRIPT="board/minnowboard/post-build.sh"
BR2_ROOTFS_POST_IMAGE_SCRIPT="board/minnowboard/post-image.sh"
+BR2_ROOTFS_POST_SCRIPT_ARGS="minnowboard"
# Linux headers same as kernel, a 3.8 series
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_8=y
diff --git a/configs/minnowboard_max_defconfig b/configs/minnowboard_max_defconfig
index dfa1b6c0fb..7c418c5c73 100644
--- a/configs/minnowboard_max_defconfig
+++ b/configs/minnowboard_max_defconfig
@@ -5,8 +5,9 @@ BR2_x86_atom=y
# Misc
BR2_TARGET_GENERIC_GETTY_PORT="ttyS0"
BR2_SYSTEM_DHCP="eth0"
-BR2_ROOTFS_POST_BUILD_SCRIPT="board/minnowboard-max/post-build.sh"
-BR2_ROOTFS_POST_IMAGE_SCRIPT="board/minnowboard-max/post-image.sh"
+BR2_ROOTFS_POST_BUILD_SCRIPT="board/minnowboard/post-build.sh"
+BR2_ROOTFS_POST_IMAGE_SCRIPT="board/minnowboard/post-image.sh"
+BR2_ROOTFS_POST_SCRIPT_ARGS="minnowboard-max"
# Linux headers same as kernel, a 4.4 series
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_4=y
@@ -23,7 +24,7 @@ BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.4"
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
-BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/minnowboard-max/linux.config"
+BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/minnowboard/linux-4.4.config"
# Bootloader
BR2_TARGET_GRUB2=y
OpenPOWER on IntegriCloud