Home Home > GIT Browse
AgeCommit message (Collapse)Author
2017-06-08scripts: create kgr_patch_main.c dynamicallyNicolai Stange
The kgraft-patches repository has got many branches, each corresponding to a supported codestream. Each of those carries a potentially different set of live (sub)patches which are controlled through the entry points in kgr_patch_main.c. According to Miroslav, merging of a new (sub)patch based on the pristine master is a pita due to conflicts. Since all (sub)patches stick to certain conventions already, the required modifications of the merging-hotspot kgr_patch_main.c are quite mechanic. Let a script do the work. Namely, - insert some special @@-embraced placeholders at the few places depending on the actual set of (sub)patches, - let register-patches.sh discover the available (sub)patches by searching for directories - and let register-patches.sh replace those placeholders in kgr_patch_main.c Finally, add a register-patches.sh invocation to tar-up.sh. This procedure requires that a SUBPATCH located in directory SUBPATCH/ adheres to the following conventions: - It must provide a provide a SUBPATCH/kgr_patch_SUBPATCH.h header. - This header must provide declarations for kgr_patch_SUBPATCH_init() and kgr_patch_SUBPATCH_cleanup(). - This header must also #define a KGR_PATCH_SUBPATCH_FUNCS macro. It should expand to a comma separated list of KGR_PATCH*() entries, each corresponding to a function the subpatch wants to replace. Signed-off-by: Nicolai Stange <nstange@suse.de> [mbenes: fixed typos, empty line removed] Signed-off-by: Miroslav Benes <mbenes@suse.cz>
2017-04-24Replace $(PWD) with $(CURDIR) in MakefileMiroslav Benes
CURDIR is an internal variable of make and more suitable. Signed-off-by: Miroslav Benes <mbenes@suse.cz>
2017-04-19Create Makefile automaticallyMiroslav Benes
Introduce scripts/create-makefile.sh script to automatically create a makefile. The scripts is called from tar-up.sh or could be called manually. Signed-off-by: Miroslav Benes <mbenes@suse.cz>
2016-10-24Better to use SUSE:SLE-12:Update than Devel:kGraft:SLE12 projectMiroslav Benes
Signed-off-by: Miroslav Benes <mbenes@suse.cz>
2016-05-10Add compat.h to deal with changes of KGR_PATCH macroMiroslav Benes
Sympos patch set for kGraft redefined KGR_PATCH macro and added two new ones. Add new compat.h which contains macro magic so that all kGraft patches would work on both old and new kernels with the patch set merged. Signed-off-by: Miroslav Benes <mbenes@suse.cz>
2016-05-06Fix the number of parameters of KGR_PATCH macroMiroslav Benes
New kernels contain kGraft's sympos patch set which changed number of paramaters of KGR_PATCH macro and introduced new macros. Fix it in master so it will be ok for new branches. Signed-off-by: Miroslav Benes <mbenes@suse.cz>
2015-09-01Include the RPM version number in the module nameMichal Marek
Signed-off-by: Michal Marek <mmarek@suse.com> Signed-off-by: Miroslav Benes <mbenes@suse.cz>
2015-08-26Remove forgotten debug option in the MakefileMiroslav Benes
Signed-off-by: Miroslav Benes <mbenes@suse.cz>
2015-08-18Add license and copyright noticesMiroslav Benes
Signed-off-by: Miroslav Benes <mbenes@suse.cz>
2015-07-15Remove immediate flagMiroslav Benes
Fake signal was merged to kGraft and immediate feature removed. Remove it in kGraft patches from now on too. Signed-off-by: Miroslav Benes <mbenes@suse.cz>
2015-05-20Set immediate flag to falseMiroslav Benes
Using immediate set to true can lead to BUGs and oopses when downgrading, reverting or applying replace_all patches. There is no way how to find out if there is a process in the old code which is being removed. The module would be put, removed and the process will crash. The consistency model guarantees that there is no one in the old code when the finalization ends. Thus use it for all case to be safe. Signed-off-by: Miroslav Benes <mbenes@suse.cz>
2015-05-12Fix description in rpm spec fileMiroslav Benes
Spec file description mentions initial kGraft patch which is only true for real initial patch. Make it more neutral. References: bsc#930408 Signed-off-by: Miroslav Benes <mbenes@suse.cz>
2015-04-01Generate archives names automatically in tar-up.shMiroslav Benes
Signed-off-by: Miroslav Benes <mbenes@suse.cz>
2015-04-01Automatically generate .changes file from git logMiroslav Benes
Also add comments to tar-up.sh script to distinguish between sections. Signed-off-by: Miroslav Benes <mbenes@suse.cz>
2015-03-26Revert "Require exact kernel version in the patch"Michal Marek
This needs to be done differently, so that modprobe --force works as expected. References: bnc#920615 This reverts commit c62c11aecd4e3f8822e1b835fea403acc3148c5a.
2015-03-25Require exact kernel version in the patchMichal Marek
References: bnc#920615 Signed-off-by: Michal Marek <mmarek@suse.cz>
2015-03-24Add the git commit and branch to the package descriptionMichal Marek
References: bnc#920633 Signed-off-by: Michal Marek <mmarek@suse.cz>
2014-11-26Set immediate flag for the initial patchMiroslav Benes
Setting immediate to true will simplify installation of the initial patch and possibly also of the further updates. References: bnc#907150 Signed-off-by: Miroslav Benes <mbenes@suse.cz>
2014-11-25Add .replace_all set to trueMiroslav Benes
Add .replace_all flag set to true even to the initial patch. Thus we will not forget to add that later. Also .immediate is there as a comment. Signed-off-by: Miroslav Benes <mbenes@suse.cz>
2014-11-24Drop the hardcoded kernel release stringMichal Marek
The updated kgraft-devel macros set this during build time, so we do not need to know the kernel release string beforehand. As a name suffix for the source packages, let's use SLE12_Test in the master branch and SLE12_Update_<n> in the update branches. Signed-off-by: Michal Marek <mmarek@suse.cz>
2014-11-21Check that we are building against the set kernel versionMichal Marek
2014-11-12Mark the module as supportedMichal Marek
References: bnc#904970 Signed-off-by: Michal Marek <mmarek@suse.cz>
2014-11-11Build the test packages against Devel:kGraft:SLE12Michal Marek
2014-11-06Add top git commit hash to uname -vMiroslav Benes
Add top git commit hash to version part of uname. This makes the identification of current patch level easy (even in crash: p kgr_tag). References: fate#317769 Signed-off-by: Miroslav Benes <mbenes@suse.cz>
2014-11-04Replace @@RELEASE@@ in kgr_patch->name with @@RPMRELEASE@@Miroslav Benes
We need to replace @@RELEASE@@ in kgr_patch->name with @@RPMRELEASE@@ due to sysfs tree. @@RELEASE@@ changes with each new version of package. Signed-off-by: Miroslav Benes <mbenes@suse.cz>
2014-11-03Add a source-timestamp file with the git commit hash and branchMichal Marek
This is required by the bs-upload-kernel script to upload packages to the BS. It can also be used by the specfile in the future. Signed-off-by: Michal Marek <mmarek@suse.cz>
2014-11-03Add config.sh scriptMichal Marek
This tells the automatic builder which IBS project to use.
2014-11-03Initial commitMiroslav Benes
Signed-off-by: Miroslav Benes <mbenes@suse.cz>