Skip to content

SPECS/linux*: RPM Macros for all linux packages#953

Open
SalimTerryLi wants to merge 4 commits into
openRuyi-Project:mainfrom
SalimTerryLi:kernel-macro
Open

SPECS/linux*: RPM Macros for all linux packages#953
SalimTerryLi wants to merge 4 commits into
openRuyi-Project:mainfrom
SalimTerryLi:kernel-macro

Conversation

@SalimTerryLi

@SalimTerryLi SalimTerryLi commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Summary

Make linux* package on openRuyi built and packaged in the same way.

Test repo: https://build.openruyi.cn/project/show/home:SalimTerryLi:pr:kernel-macro

Related Issue

Checklist

  • I have read the openRuyi Code of Conduct and agree to abide by it.
  • I have read the [AI-Assisted Contribution Policy], and this Pull Request includes non-trivial AI-assisted content.

Assisted-by:

@openruyi-bot openruyi-bot Bot added BuildSystem: misc Issue/PR not related to any BuildSystem. Target: Rolling Targeting rolling/current branch. Workflow: Ready For Review Ready for review by anyone with domain expertise. labels Jul 17, 2026
@SalimTerryLi SalimTerryLi changed the title SPECS/linux SPECS/linux*: RPM Macros for all linux packages Jul 17, 2026
@Z572
Z572 requested a review from RevySR July 17, 2026 07:28
Comment thread SPECS/openruyi-linux-build/macros.linux Outdated
%%files core
%%dir %%{_kernel_modpath}
%%{_kernel_modpath}/vmlinuz
%%{_kernel_modpath}/config.zst

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why must zst

Version: 20260713
Release: %autorelease
Summary: Dependencies for building linux kernel on openRuyi
License: GPL-2.0-or-later

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why gplv2+

This package contains the RPM macros for building the openRuyi Linux kernel.

%prep
%setup -c -T

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

autosetup


%buildsystem_linux_conf() %{expand:\
echo "-%%{_kernel_local_version}" > localversion
cp "%1" .config

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe report error when not provide %1

@openruyi-bot openruyi-bot Bot added Workflow: In Review Issues that are undergoing code review and/or undergoing design review. and removed Workflow: Ready For Review Ready for review by anyone with domain expertise. labels Jul 17, 2026
@SalimTerryLi
SalimTerryLi force-pushed the kernel-macro branch 2 times, most recently from c34d79f to 9af2364 Compare July 17, 2026 08:05
This package ships the receipe for any Linux kernel intented to
carry openRuyi userspace. It defines generic building procedure and
installing behavior, to integrate into openRuyi.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BuildSystem: misc Issue/PR not related to any BuildSystem. Target: Rolling Targeting rolling/current branch. Workflow: In Review Issues that are undergoing code review and/or undergoing design review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants