Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
lede-mikrotik
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Johannes Rudolph
lede-mikrotik
Commits
00247601
Commit
00247601
authored
18 years ago
by
Felix Fietkau
Browse files
Options
Downloads
Patches
Plain Diff
make filesystem size selection generic (for ext2)
SVN-Revision: 5221
parent
d2e30add
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Config.in
+5
-0
5 additions, 0 deletions
Config.in
include/image.mk
+4
-1
4 additions, 1 deletion
include/image.mk
target/image/x86/Config.in
+1
-4
1 addition, 4 deletions
target/image/x86/Config.in
target/image/x86/Makefile
+1
-1
1 addition, 1 deletion
target/image/x86/Makefile
with
11 additions
and
6 deletions
Config.in
+
5
−
0
View file @
00247601
...
@@ -95,6 +95,11 @@ comment "Image Options"
...
@@ -95,6 +95,11 @@ comment "Image Options"
source "target/image/*/Config.in"
source "target/image/*/Config.in"
config TARGET_ROOTFS_FSPART
int "Filesystem part size (in MB)"
depends X86_GRUB_IMAGES || TARGET_ROOTFS_EXT2FS
default 16
endmenu
endmenu
source "target/linux/Config.in"
source "target/linux/Config.in"
...
...
This diff is collapsed.
Click to expand it.
include/image.mk
+
4
−
1
View file @
00247601
...
@@ -48,9 +48,12 @@ ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y)
...
@@ -48,9 +48,12 @@ ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y)
endif
endif
ifeq
($(CONFIG_TARGET_ROOTFS_EXT2FS),y)
ifeq
($(CONFIG_TARGET_ROOTFS_EXT2FS),y)
E2SIZE
=
$(
shell
echo
$$(
(
$(
CONFIG_TARGET_ROOTFS_SIZE
)
*
1024
))
)
define
Image/mkfs/ext2
define
Image/mkfs/ext2
$(STAGING_DIR)/bin/genext2fs
-q
-b
8192
-I
1500
-d
$(BUILD_DIR)/root/
$(KDIR)/root.ext2
$(STAGING_DIR)/bin/genext2fs
-q
-b
$(E2SIZE)
-I
1500
-d
$(BUILD_DIR)/root/
$(KDIR)/root.ext2
$(
call
Image/Build,ext2
)
$(
call
Image/Build,ext2
)
endef
endef
endif
endif
...
...
This diff is collapsed.
Click to expand it.
target/image/x86/Config.in
+
1
−
4
View file @
00247601
...
@@ -14,7 +14,4 @@ config X86_GRUB_KERNELPART
...
@@ -14,7 +14,4 @@ config X86_GRUB_KERNELPART
depends X86_GRUB_IMAGES
depends X86_GRUB_IMAGES
default 4
default 4
config X86_GRUB_FSPART
int "Filesystem partition size (in MB)"
depends X86_GRUB_IMAGES
default 16
This diff is collapsed.
Click to expand it.
target/image/x86/Makefile
+
1
−
1
View file @
00247601
...
@@ -40,7 +40,7 @@ ifeq ($(CONFIG_X86_GRUB_IMAGES),y)
...
@@ -40,7 +40,7 @@ ifeq ($(CONFIG_X86_GRUB_IMAGES),y)
-e
's#@CMDLINE@#$(strip $(call Image/cmdline/$(1)))#g'
\
-e
's#@CMDLINE@#$(strip $(call Image/cmdline/$(1)))#g'
\
-e
's#@BAUDRATE@#$(CONFIG_X86_GRUB_BAUDRATE)#g'
\
-e
's#@BAUDRATE@#$(CONFIG_X86_GRUB_BAUDRATE)#g'
\
./grub/menu.lst
>
$(KDIR)/root.grub/boot/grub/menu.lst
./grub/menu.lst
>
$(KDIR)/root.grub/boot/grub/menu.lst
PATH
=
"
$(
STAGING_DIR
)
/usr/sbin:
$(
STAGING_DIR
)
/bin:
$(
PATH
)
"
./gen_image.sh
$(
BIN_DIR
)
/openwrt-
$(
BOARD
)
-
$(
KERNEL
)
-
$(
1
)
.image
$(
CONFIG_X86_GRUB_KERNELPART
)
$(
KDIR
)
/root.grub
$(
CONFIG_
X86_GRUB
_FSPART
)
$(
KDIR
)
/root.
$(
1
)
PATH
=
"
$(
STAGING_DIR
)
/usr/sbin:
$(
STAGING_DIR
)
/bin:
$(
PATH
)
"
./gen_image.sh
$(
BIN_DIR
)
/openwrt-
$(
BOARD
)
-
$(
KERNEL
)
-
$(
1
)
.image
$(
CONFIG_X86_GRUB_KERNELPART
)
$(
KDIR
)
/root.grub
$(
CONFIG_
TARGET_ROOTFS
_FSPART
)
$(
KDIR
)
/root.
$(
1
)
endef
endef
endif
endif
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment