Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pmbootstrap
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
postmarketOS
pmbootstrap
Commits
742e4624
Commit
742e4624
authored
7 years ago
by
Oliver Smith
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix
#319
: pmbootstrap menuconfig didn't work for mainline kernel (#328)
Also did some minor refactoring.
parent
147863d9
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pmb/build/menuconfig.py
+5
-6
5 additions, 6 deletions
pmb/build/menuconfig.py
with
5 additions
and
6 deletions
pmb/build/menuconfig.py
+
5
−
6
View file @
742e4624
...
...
@@ -29,6 +29,7 @@ import pmb.parse
def
menuconfig
(
args
,
pkgname
,
arch
):
# Pkgname: allow omitting "linux-" prefix
if
pkgname
.
startswith
(
"
linux-
"
):
pkgname_
=
pkgname
.
split
(
"
linux-
"
)[
1
]
logging
.
info
(
"
PROTIP: You can simply do
'
pmbootstrap menuconfig
"
+
...
...
@@ -37,9 +38,7 @@ def menuconfig(args, pkgname, arch):
pkgname
=
"
linux-
"
+
pkgname
# Read apkbuild
aport
=
pmb
.
build
.
find_aport
(
args
,
pkgname
,
False
)
if
not
aport
:
raise
RuntimeError
(
"
Package
"
+
pkgname
+
"
: Could not find aport!
"
)
aport
=
pmb
.
build
.
find_aport
(
args
,
pkgname
)
apkbuild
=
pmb
.
parse
.
apkbuild
(
args
,
aport
+
"
/APKBUILD
"
)
# Set up build tools and makedepends
...
...
@@ -52,8 +51,8 @@ def menuconfig(args, pkgname, arch):
logging
.
info
(
"
(native) extract kernel source
"
)
pmb
.
chroot
.
user
(
args
,
[
"
abuild
"
,
"
unpack
"
],
"
native
"
,
"
/home/user/build
"
)
logging
.
info
(
"
(native) apply patches
"
)
pmb
.
chroot
.
user
(
args
,
[
"
abuild
"
,
"
prepare
"
],
"
native
"
,
"
/home/user/build
"
,
log
=
False
)
pmb
.
chroot
.
user
(
args
,
[
"
CARCH=
"
+
arch
,
"
abuild
"
,
"
prepare
"
],
"
native
"
,
"
/home/user/build
"
,
log
=
False
)
# Run abuild menuconfig
cmd
=
[]
...
...
@@ -65,7 +64,7 @@ def menuconfig(args, pkgname, arch):
pmb
.
chroot
.
user
(
args
,
cmd
,
"
native
"
,
"
/home/user/build
"
,
log
=
False
)
# Update config + checksums
logging
.
info
(
"
c
opy kernel config back to aport-folder
"
)
logging
.
info
(
"
C
opy kernel config back to aport-folder
"
)
source
=
args
.
work
+
"
/chroot_native/home/user/build/src/build/.config
"
if
not
os
.
path
.
exists
(
source
):
raise
RuntimeError
(
"
No kernel config generated!
"
)
...
...
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