linux-samsung-klte: modernize, update sources (!94)
Use latest sources from LineageOS, instead of the ones from andip71.
The APKBUILD is modernized to use the devicepkg-dev but unfortunately
compiling with gcc8 it doesn't boot.
The kernel config is updated with the required options to start the
lxc-android container and xf86-video-hwcomposer works
(tested with xfce4).
My plan was to add the firmware-samsung-klte with the subpackages for
the wifi blobs and a precompiled android system.img to use with
libhybris, but my device just died and I'm not able to power it on (I've
probably burnt the Power IC 😢)
This commit is contained in:
parent
b99764378c
commit
bde7c3b90b
7 changed files with 947 additions and 314 deletions
|
@ -35,9 +35,9 @@ diff --git a/arch/arm/kernel/return_address.c b/arch/arm/kernel/return_address.c
|
|||
index fafedd86885dd..f6aa84d5b93c9 100644
|
||||
--- a/arch/arm/kernel/return_address.c
|
||||
+++ b/arch/arm/kernel/return_address.c
|
||||
@@ -63,11 +63,6 @@ void *return_address(unsigned int level)
|
||||
#warning "TODO: return_address should use unwind tables"
|
||||
#endif
|
||||
@@ -58,11 +58,6 @@ void *return_address(unsigned int level)
|
||||
|
||||
#else /* if defined(CONFIG_FRAME_POINTER) && !defined(CONFIG_ARM_UNWIND) */
|
||||
|
||||
-void *return_address(unsigned int level)
|
||||
-{
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
source:
|
||||
https://github.com/ShinySide/HispAsian_Lollipop_G6/commit/b7756b6fc4bb728722b14d2dfdbaf1dc843812e9
|
||||
From b7756b6fc4bb728722b14d2dfdbaf1dc843812e9 Mon Sep 17 00:00:00 2001
|
||||
From: Chet Kener <Cl3Kener@gmail.com>
|
||||
Date: Tue, 21 Oct 2014 18:41:36 -0400
|
||||
Subject: [PATCH] gpu:msm: Fix 5.0 compile
|
||||
|
||||
* These need to be static to avoid these errors:
|
||||
|
||||
|
@ -10,10 +12,15 @@ Makefile:877: recipe for target '.tmp_vmlinux1' failed
|
|||
make: *** [.tmp_vmlinux1] Error 1
|
||||
|
||||
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
|
||||
---
|
||||
drivers/gpu/msm/kgsl_iommu.c | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/drivers/gpu/msm/kgsl_iommu.c b/drivers/gpu/msm/kgsl_iommu.c
|
||||
index c4fa8af4..4f66a2f0 100644
|
||||
--- a/drivers/gpu/msm/kgsl_iommu.c
|
||||
+++ b/drivers/gpu/msm/kgsl_iommu.c
|
||||
@@ -1010,7 +1010,7 @@ static int kgsl_iommu_init_sync_lock(struct kgsl_mmu *mmu)
|
||||
@@ -1002,7 +1002,7 @@ static int kgsl_iommu_init_sync_lock(struct kgsl_mmu *mmu)
|
||||
*
|
||||
* Return - int - number of commands.
|
||||
*/
|
||||
|
@ -22,7 +29,7 @@ Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
|
|||
unsigned int *cmds)
|
||||
{
|
||||
struct kgsl_device *device = mmu->device;
|
||||
@@ -1080,7 +1080,7 @@ inline unsigned int kgsl_iommu_sync_lock(struct kgsl_mmu *mmu,
|
||||
@@ -1072,7 +1072,7 @@ inline unsigned int kgsl_iommu_sync_lock(struct kgsl_mmu *mmu,
|
||||
*
|
||||
* Return - int - number of commands.
|
||||
*/
|
|
@ -1,45 +0,0 @@
|
|||
From 63a3f603413ffe82ad775f2d62a5afff87fd94a0 Mon Sep 17 00:00:00 2001
|
||||
From: "H. Peter Anvin" <hpa@linux.intel.com>
|
||||
Date: Thu, 7 Feb 2013 17:14:08 -0800
|
||||
Subject: [PATCH] timeconst.pl: Eliminate Perl warning
|
||||
|
||||
defined(@array) is deprecated in Perl and gives off a warning.
|
||||
Restructure the code to remove that warning.
|
||||
|
||||
[ hpa: it would be interesting to revert to the timeconst.bc script.
|
||||
It appears that the failures reported by akpm during testing of
|
||||
that script was due to a known broken version of make, not a problem
|
||||
with bc. The Makefile rules could probably be restructured to avoid
|
||||
the make bug, or it is probably old enough that it doesn't matter. ]
|
||||
|
||||
Reported-by: Andi Kleen <ak@linux.intel.com>
|
||||
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
|
||||
Cc: Andrew Morton <akpm@linux-foundation.org>
|
||||
Cc: <stable@vger.kernel.org>
|
||||
Signed-off-by: Gustavo Zacarias <gustavo.zacarias@free-electrons.com>
|
||||
---
|
||||
Patch status: upstream
|
||||
|
||||
kernel/timeconst.pl | 6 ++----
|
||||
1 file changed, 2 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/kernel/timeconst.pl b/kernel/timeconst.pl
|
||||
index eb51d76..3f42652 100644
|
||||
--- a/kernel/timeconst.pl
|
||||
+++ b/kernel/timeconst.pl
|
||||
@@ -369,10 +369,8 @@ if ($hz eq '--can') {
|
||||
die "Usage: $0 HZ\n";
|
||||
}
|
||||
|
||||
- @val = @{$canned_values{$hz}};
|
||||
- if (!defined(@val)) {
|
||||
- @val = compute_values($hz);
|
||||
- }
|
||||
+ $cv = $canned_values{$hz};
|
||||
+ @val = defined($cv) ? @$cv : compute_values($hz);
|
||||
output($hz, @val);
|
||||
}
|
||||
exit 0;
|
||||
--
|
||||
2.4.10
|
||||
|
|
@ -0,0 +1,647 @@
|
|||
From c467cfc3b24ccf4ae5a6153a89eb3805906ce72b Mon Sep 17 00:00:00 2001
|
||||
From: drebrez <drebrez@gmail.com>
|
||||
Date: Sun, 2 Dec 2018 22:36:11 +0100
|
||||
Subject: [PATCH] Reduce battery and touchscreen log spam
|
||||
|
||||
---
|
||||
drivers/battery/max17048_fuelgauge.c | 7 +-
|
||||
drivers/battery/max77804k_charger.c | 24 ++--
|
||||
drivers/battery/sec_battery.c | 135 ++++++++++--------
|
||||
drivers/battery/sec_fuelgauge.c | 7 +-
|
||||
drivers/fingerprint/fingerprint.h | 7 +-
|
||||
drivers/fingerprint/vfs61xx.c | 29 ++--
|
||||
.../touchscreen/synaptics/synaptics_i2c_rmi.c | 12 +-
|
||||
drivers/thermal/msm_thermal.c | 56 ++++----
|
||||
8 files changed, 147 insertions(+), 130 deletions(-)
|
||||
|
||||
diff --git a/drivers/battery/max17048_fuelgauge.c b/drivers/battery/max17048_fuelgauge.c
|
||||
index ef07336db85..45e3672e75d 100644
|
||||
--- a/drivers/battery/max17048_fuelgauge.c
|
||||
+++ b/drivers/battery/max17048_fuelgauge.c
|
||||
@@ -410,9 +410,10 @@ static int max17048_get_soc(struct i2c_client *client)
|
||||
soc = (data[0] * 100) + (data[1] * 100 / 256);
|
||||
}
|
||||
|
||||
- dev_info(&client->dev,
|
||||
- "%s : raw capacity (%d), data(0x%04x)\n",
|
||||
- __func__, soc, (data[0]<<8) | data[1]);
|
||||
+ // disable log spam
|
||||
+ //dev_info(&client->dev,
|
||||
+ // "%s : raw capacity (%d), data(0x%04x)\n",
|
||||
+ // __func__, soc, (data[0]<<8) | data[1]);
|
||||
|
||||
return soc;
|
||||
}
|
||||
diff --git a/drivers/battery/max77804k_charger.c b/drivers/battery/max77804k_charger.c
|
||||
index 376e2bd5cbf..7558a585e2d 100644
|
||||
--- a/drivers/battery/max77804k_charger.c
|
||||
+++ b/drivers/battery/max77804k_charger.c
|
||||
@@ -343,7 +343,7 @@ static void max77804k_set_input_current(struct max77804k_charger_data *charger,
|
||||
set_reg, 0x19);
|
||||
|
||||
#if defined(CONFIG_MACH_KLTE_CTC)
|
||||
- pr_info("%s: qpnp_pon_set_wd_timer 2s\n", __func__);
|
||||
+ pr_debug("%s: qpnp_pon_set_wd_timer 2s\n", __func__);
|
||||
qpnp_pon_set_wd_timer(1, 1, 0x8);
|
||||
msleep(10);
|
||||
#endif
|
||||
@@ -352,7 +352,7 @@ static void max77804k_set_input_current(struct max77804k_charger_data *charger,
|
||||
|
||||
#if defined(CONFIG_MACH_KLTE_CTC)
|
||||
msleep(10);
|
||||
- pr_info("%s: qpnp_pon_set_wd_timer 18s\n", __func__);
|
||||
+ pr_debug("%s: qpnp_pon_set_wd_timer 18s\n", __func__);
|
||||
qpnp_pon_set_wd_timer(17, 1, 0xE);
|
||||
#endif
|
||||
goto exit;
|
||||
@@ -385,7 +385,7 @@ static void max77804k_set_input_current(struct max77804k_charger_data *charger,
|
||||
set_current_reg = (MINIMUM_INPUT_CURRENT / charger->input_curr_limit_step);
|
||||
max77804k_write_reg(charger->max77804k->i2c,
|
||||
set_reg, set_current_reg);
|
||||
- pr_info("%s: set_current_reg(0x%02x)\n", __func__, set_current_reg);
|
||||
+ pr_debug("%s: set_current_reg(0x%02x)\n", __func__, set_current_reg);
|
||||
chg_state = max77804k_get_charger_state(charger);
|
||||
if ((chg_state != POWER_SUPPLY_STATUS_CHARGING) &&
|
||||
(chg_state != POWER_SUPPLY_STATUS_FULL))
|
||||
@@ -436,7 +436,7 @@ static void max77804k_set_input_current(struct max77804k_charger_data *charger,
|
||||
curr_step /= 2;
|
||||
max77804k_write_reg(charger->max77804k->i2c,
|
||||
set_reg, now_current_reg);
|
||||
- pr_info("%s: now_current_reg(0x%02x)\n", __func__, now_current_reg);
|
||||
+ pr_debug("%s: now_current_reg(0x%02x)\n", __func__, now_current_reg);
|
||||
chg_state = max77804k_get_charger_state(charger);
|
||||
if ((chg_state != POWER_SUPPLY_STATUS_CHARGING) &&
|
||||
(chg_state != POWER_SUPPLY_STATUS_FULL))
|
||||
@@ -450,7 +450,7 @@ static void max77804k_set_input_current(struct max77804k_charger_data *charger,
|
||||
}
|
||||
|
||||
set_input_current:
|
||||
- pr_info("%s: reg_data(0x%02x), input(%d)\n",
|
||||
+ pr_debug("%s: reg_data(0x%02x), input(%d)\n",
|
||||
__func__, set_current_reg, cur);
|
||||
max77804k_write_reg(charger->max77804k->i2c,
|
||||
set_reg, set_current_reg);
|
||||
@@ -474,14 +474,14 @@ static int max77804k_get_input_current(struct max77804k_charger_data *charger)
|
||||
if (charger->cable_type == POWER_SUPPLY_TYPE_WIRELESS) {
|
||||
max77804k_read_reg(charger->max77804k->i2c,
|
||||
MAX77804K_CHG_REG_CHG_CNFG_10, ®_data);
|
||||
- pr_info("%s: CHG_CNFG_10(0x%02x)\n", __func__, reg_data);
|
||||
+ // pr_info("%s: CHG_CNFG_10(0x%02x)\n", __func__, reg_data);
|
||||
/* AND operation for removing the formal 2bit */
|
||||
reg_data = reg_data & 0x3F;
|
||||
charger->input_curr_limit_step = 20;
|
||||
} else {
|
||||
max77804k_read_reg(charger->max77804k->i2c,
|
||||
MAX77804K_CHG_REG_CHG_CNFG_09, ®_data);
|
||||
- pr_info("%s: CHG_CNFG_09(0x%02x)\n", __func__, reg_data);
|
||||
+ // pr_info("%s: CHG_CNFG_09(0x%02x)\n", __func__, reg_data);
|
||||
/* AND operation for removing the formal 1bit */
|
||||
reg_data = reg_data & 0x7F;
|
||||
if (charger->pmic_ver == 0x04)
|
||||
@@ -521,7 +521,7 @@ static void max77804k_set_topoff_current(struct max77804k_charger_data *charger,
|
||||
/* the unit of timeout is second*/
|
||||
timeout = timeout / 60;
|
||||
reg_data |= ((timeout / 10) << 3);
|
||||
- pr_info("%s: reg_data(0x%02x), topoff(%d)\n", __func__, reg_data, cur);
|
||||
+ pr_debug("%s: reg_data(0x%02x), topoff(%d)\n", __func__, reg_data, cur);
|
||||
|
||||
max77804k_write_reg(charger->max77804k->i2c,
|
||||
MAX77804K_CHG_REG_CHG_CNFG_03, reg_data);
|
||||
@@ -793,7 +793,7 @@ static int max77804k_get_health_state(struct max77804k_charger_data *charger)
|
||||
|
||||
reg_data = ((reg_data & MAX77804K_BAT_DTLS) >> MAX77804K_BAT_DTLS_SHIFT);
|
||||
|
||||
- pr_info("%s: bat_dtls(0x%x) int_mask(0x%x)\n", __func__, reg_data, chg_int_mask);
|
||||
+ // pr_info("%s: bat_dtls(0x%x) int_mask(0x%x)\n", __func__, reg_data, chg_int_mask);
|
||||
switch (reg_data) {
|
||||
case 0x00:
|
||||
pr_info("%s: No battery and the charger is suspended\n",
|
||||
@@ -864,7 +864,7 @@ static int max77804k_get_health_state(struct max77804k_charger_data *charger)
|
||||
__func__, chg_cnfg_09, chg_cnfg_12);
|
||||
}
|
||||
|
||||
- pr_info("%s: vbus_state : 0x%d, chg_dtls : 0x%d\n", __func__, vbus_state, chg_dtls);
|
||||
+ // pr_info("%s: vbus_state : 0x%d, chg_dtls : 0x%d\n", __func__, vbus_state, chg_dtls);
|
||||
/* OVP is higher priority */
|
||||
if (vbus_state == 0x02) { /* CHGIN_OVLO */
|
||||
pr_info("%s: vbus ovp\n", __func__);
|
||||
@@ -964,7 +964,7 @@ static int sec_chg_get_property(struct power_supply *psy,
|
||||
#if defined(WPC_CHECK_CVPRM_FEATURE) || defined(CONFIG_BATTERY_SWELLING)
|
||||
case POWER_SUPPLY_PROP_VOLTAGE_MAX:
|
||||
val->intval = max77804k_get_charge_votage(charger);
|
||||
- pr_info("%s: Float voltage : 0x%x\n", __func__, val->intval);
|
||||
+ pr_debug("%s: Float voltage : 0x%x\n", __func__, val->intval);
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
@@ -1215,7 +1215,7 @@ static int sec_chg_set_property(struct power_supply *psy,
|
||||
pr_info("%s: Float voltage set to : 0x%x\n", __func__, reg_data);
|
||||
break;
|
||||
case POWER_SUPPLY_PROP_CHARGING_ENABLED:
|
||||
- pr_info("%s: charger enable(%d)\n", __func__, val->intval);
|
||||
+ pr_debug("%s: charger enable(%d)\n", __func__, val->intval);
|
||||
max77804k_set_charger_state(charger, val->intval);
|
||||
charger->is_charging = val->intval;
|
||||
break;
|
||||
diff --git a/drivers/battery/sec_battery.c b/drivers/battery/sec_battery.c
|
||||
index bd656f31acf..c15ae734d19 100644
|
||||
--- a/drivers/battery/sec_battery.c
|
||||
+++ b/drivers/battery/sec_battery.c
|
||||
@@ -486,7 +486,7 @@ static bool sec_bat_check_vf_adc(struct sec_battery_info *battery)
|
||||
(battery->check_adc_value >= battery->pdata->check_adc_min)) {
|
||||
return true;
|
||||
} else {
|
||||
- dev_info(battery->dev, "%s: adc (%d)\n", __func__, battery->check_adc_value);
|
||||
+ //dev_info(battery->dev, "%s: adc (%d)\n", __func__, battery->check_adc_value);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -655,8 +655,8 @@ static bool sec_bat_battery_cable_check(struct sec_battery_info *battery)
|
||||
if (battery->check_count < battery->pdata->check_count)
|
||||
battery->check_count++;
|
||||
else {
|
||||
- dev_err(battery->dev,
|
||||
- "%s: Battery Disconnected\n", __func__);
|
||||
+ //dev_err(battery->dev,
|
||||
+ // "%s: Battery Disconnected\n", __func__);
|
||||
battery->present = false;
|
||||
battery->health = POWER_SUPPLY_HEALTH_UNSPEC_FAILURE;
|
||||
|
||||
@@ -697,7 +697,8 @@ static bool sec_bat_battery_cable_check(struct sec_battery_info *battery)
|
||||
}
|
||||
}
|
||||
|
||||
- dev_info(battery->dev, "%s: Battery Connected\n", __func__);
|
||||
+ // disable log spam
|
||||
+ // dev_info(battery->dev, "%s: Battery Connected\n", __func__);
|
||||
|
||||
if (battery->pdata->cable_check_type &
|
||||
SEC_BATTERY_CABLE_CHECK_POLLING) {
|
||||
@@ -746,8 +747,8 @@ static bool sec_bat_ovp_uvlo_result(
|
||||
battery->health = health;
|
||||
switch (health) {
|
||||
case POWER_SUPPLY_HEALTH_GOOD:
|
||||
- dev_info(battery->dev, "%s: Safe voltage\n", __func__);
|
||||
- dev_info(battery->dev, "%s: is_recharging : %d\n", __func__, battery->is_recharging);
|
||||
+ //dev_info(battery->dev, "%s: Safe voltage\n", __func__);
|
||||
+ //dev_info(battery->dev, "%s: is_recharging : %d\n", __func__, battery->is_recharging);
|
||||
sec_bat_set_charging_status(battery,
|
||||
POWER_SUPPLY_STATUS_CHARGING);
|
||||
if (battery->siop_level != 100)
|
||||
@@ -914,8 +915,9 @@ static bool sec_bat_voltage_check(struct sec_battery_info *battery)
|
||||
int recharge_condition_vcell = battery->pdata->recharge_condition_vcell;
|
||||
|
||||
if (battery->status == POWER_SUPPLY_STATUS_DISCHARGING) {
|
||||
- dev_dbg(battery->dev,
|
||||
- "%s: Charging Disabled\n", __func__);
|
||||
+ // disable log spam
|
||||
+ //dev_dbg(battery->dev,
|
||||
+ // "%s: Charging Disabled\n", __func__);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1045,9 +1047,10 @@ static bool sec_bat_get_temperature_by_adc(
|
||||
temp_by_adc_goto:
|
||||
value->intval = temp;
|
||||
|
||||
- dev_info(battery->dev,
|
||||
- "%s: Temp(%d), Temp-ADC(%d)\n",
|
||||
- __func__, temp, temp_adc);
|
||||
+ // disable log spam
|
||||
+ //dev_info(battery->dev,
|
||||
+ // "%s: Temp(%d), Temp-ADC(%d)\n",
|
||||
+ // __func__, temp, temp_adc);
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -1099,14 +1102,15 @@ static bool sec_bat_temperature(
|
||||
battery->pdata->temp_low_threshold_normal;
|
||||
}
|
||||
|
||||
- dev_info(battery->dev,
|
||||
- "%s: HLT(%d) HLR(%d) HT(%d), HR(%d), LT(%d), LR(%d)\n",
|
||||
- __func__, battery->temp_highlimit_threshold,
|
||||
- battery->temp_highlimit_recovery,
|
||||
- battery->temp_high_threshold,
|
||||
- battery->temp_high_recovery,
|
||||
- battery->temp_low_threshold,
|
||||
- battery->temp_low_recovery);
|
||||
+ // disable log spam
|
||||
+ //dev_info(battery->dev,
|
||||
+ // "%s: HLT(%d) HLR(%d) HT(%d), HR(%d), LT(%d), LR(%d)\n",
|
||||
+ // __func__, battery->temp_highlimit_threshold,
|
||||
+ // battery->temp_highlimit_recovery,
|
||||
+ // battery->temp_high_threshold,
|
||||
+ // battery->temp_high_recovery,
|
||||
+ // battery->temp_low_threshold,
|
||||
+ // battery->temp_low_recovery);
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -1121,7 +1125,7 @@ static void sec_bat_swelling_check(struct sec_battery_info *battery, int tempera
|
||||
psy_do_property(battery->pdata->charger_name, get,
|
||||
POWER_SUPPLY_PROP_VOLTAGE_MAX, val);
|
||||
|
||||
- pr_info("%s: status(%d), swell_mode(%d:%d:%d), cv(%d)mV, temp(%d)\n",
|
||||
+ pr_debug("%s: status(%d), swell_mode(%d:%d:%d), cv(%d)mV, temp(%d)\n",
|
||||
__func__, battery->status, battery->swelling_mode,
|
||||
battery->charging_block, (battery->current_event & SEC_BAT_CURRENT_EVENT_LOW_TEMP),
|
||||
val.intval, temperature);
|
||||
@@ -1307,8 +1311,9 @@ static bool sec_bat_temperature_check(
|
||||
int pre_health;
|
||||
|
||||
if (battery->status == POWER_SUPPLY_STATUS_DISCHARGING) {
|
||||
- dev_dbg(battery->dev,
|
||||
- "%s: Charging Disabled\n", __func__);
|
||||
+ // disable log spam
|
||||
+ //dev_dbg(battery->dev,
|
||||
+ // "%s: Charging Disabled\n", __func__);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1711,7 +1716,7 @@ static bool sec_bat_time_management(
|
||||
get_monotonic_boottime(&ts);
|
||||
|
||||
if(battery->charging_start_time == 0 || !battery->safety_timer_set) {
|
||||
- pr_info("%s: Charging Disabled\n" ,__func__);
|
||||
+ pr_debug("%s: Charging Disabled\n" ,__func__);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1723,9 +1728,10 @@ static bool sec_bat_time_management(
|
||||
|
||||
battery->charging_passed_time = charging_time;
|
||||
|
||||
- dev_info(battery->dev,
|
||||
- "%s: Charging Time : %ld secs\n", __func__,
|
||||
- battery->charging_passed_time);
|
||||
+ // disable log spam
|
||||
+ //dev_info(battery->dev,
|
||||
+ // "%s: Charging Time : %ld secs\n", __func__,
|
||||
+ // battery->charging_passed_time);
|
||||
|
||||
switch (battery->status) {
|
||||
case POWER_SUPPLY_STATUS_FULL:
|
||||
@@ -2083,11 +2089,12 @@ static bool sec_bat_fullcharged_check(
|
||||
if (sec_bat_check_fullcharged(battery))
|
||||
sec_bat_do_fullcharged(battery);
|
||||
|
||||
- dev_info(battery->dev,
|
||||
- "%s: Charging Mode : %s\n", __func__,
|
||||
- battery->is_recharging ?
|
||||
- sec_bat_charging_mode_str[SEC_BATTERY_CHARGING_RECHARGING] :
|
||||
- sec_bat_charging_mode_str[battery->charging_mode]);
|
||||
+ // disable log spam
|
||||
+ //dev_info(battery->dev,
|
||||
+ // "%s: Charging Mode : %s\n", __func__,
|
||||
+ // battery->is_recharging ?
|
||||
+ // sec_bat_charging_mode_str[SEC_BATTERY_CHARGING_RECHARGING] :
|
||||
+ // sec_bat_charging_mode_str[battery->charging_mode]);
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -2108,7 +2115,7 @@ static void sec_bat_check_changed_soc(
|
||||
if (battery->prev_reported_soc == value->intval) {
|
||||
goto report;
|
||||
} else {
|
||||
- dev_info(battery->dev, "%s: prev_reported_soc = %d, soc = %d\n",
|
||||
+ dev_dbg(battery->dev, "%s: prev_reported_soc = %d, soc = %d\n",
|
||||
__func__, battery->prev_reported_soc, value->intval);
|
||||
}
|
||||
/* if soc have been chaged, only change soc by 1
|
||||
@@ -2248,7 +2255,7 @@ static void sec_bat_get_battery_info(
|
||||
} else if ((battery->capacity != 100) &&
|
||||
((c_ts.tv_sec - old_ts.tv_sec) >= 30)) {
|
||||
battery->capacity++;
|
||||
- pr_info("%s : forced full-charged sequence for the capacity(%d)\n",
|
||||
+ pr_debug("%s : forced full-charged sequence for the capacity(%d)\n",
|
||||
__func__, battery->capacity);
|
||||
old_ts = c_ts;
|
||||
}
|
||||
@@ -2261,19 +2268,20 @@ static void sec_bat_get_battery_info(
|
||||
}
|
||||
#endif
|
||||
|
||||
- dev_info(battery->dev,
|
||||
- "%s:Vnow(%dmV),Inow(%dmA),Imax(%dmA),SOC(%d%%),Tbat(%d),is_hc_usb(%d)\n",
|
||||
- __func__,
|
||||
- battery->voltage_now, battery->current_now,
|
||||
- battery->current_max, battery->capacity,
|
||||
- battery->temperature, battery->is_hc_usb);
|
||||
- dev_dbg(battery->dev,
|
||||
- "%s,Vavg(%dmV),Vocv(%dmV),Tamb(%d),"
|
||||
- "Iavg(%dmA),Iadc(%d)\n",
|
||||
- battery->present ? "Connected" : "Disconnected",
|
||||
- battery->voltage_avg, battery->voltage_ocv,
|
||||
- battery->temper_amb,
|
||||
- battery->current_avg, battery->current_adc);
|
||||
+ // disable log spam
|
||||
+ //dev_info(battery->dev,
|
||||
+ // "%s:Vnow(%dmV),Inow(%dmA),Imax(%dmA),SOC(%d%%),Tbat(%d),is_hc_usb(%d)\n",
|
||||
+ // __func__,
|
||||
+ // battery->voltage_now, battery->current_now,
|
||||
+ // battery->current_max, battery->capacity,
|
||||
+ // battery->temperature, battery->is_hc_usb);
|
||||
+ //dev_dbg(battery->dev,
|
||||
+ // "%s,Vavg(%dmV),Vocv(%dmV),Tamb(%d),"
|
||||
+ // "Iavg(%dmA),Iadc(%d)\n",
|
||||
+ // battery->present ? "Connected" : "Disconnected",
|
||||
+ // battery->voltage_avg, battery->voltage_ocv,
|
||||
+ // battery->temper_amb,
|
||||
+ // battery->current_avg, battery->current_adc);
|
||||
}
|
||||
|
||||
static void sec_bat_polling_work(struct work_struct *work)
|
||||
@@ -2560,8 +2568,9 @@ static void sec_bat_calculate_safety_time(struct sec_battery_info *battery)
|
||||
battery->stop_timer = false;
|
||||
}
|
||||
|
||||
- pr_info("%s : EXPIRED_TIME(%llu), IP(%d), CP(%d), CURR(%d), STANDARD(%d)\n",
|
||||
- __func__, expired_time, input_power, charging_power, curr, battery->pdata->standard_curr);
|
||||
+ // disable log spam
|
||||
+ //pr_info("%s : EXPIRED_TIME(%llu), IP(%d), CP(%d), CURR(%d), STANDARD(%d)\n",
|
||||
+ // __func__, expired_time, input_power, charging_power, curr, battery->pdata->standard_curr);
|
||||
|
||||
if (curr == 0)
|
||||
return;
|
||||
@@ -2569,7 +2578,8 @@ static void sec_bat_calculate_safety_time(struct sec_battery_info *battery)
|
||||
expired_time *= battery->pdata->standard_curr;
|
||||
do_div(expired_time, curr);
|
||||
|
||||
- pr_info("%s : CAL_EXPIRED_TIME(%llu) TIME NOW(%ld) TIME PREV(%ld)\n", __func__, expired_time, ts.tv_sec, battery->prev_safety_time);
|
||||
+ // disable log spam
|
||||
+ // pr_info("%s : CAL_EXPIRED_TIME(%llu) TIME NOW(%ld) TIME PREV(%ld)\n", __func__, expired_time, ts.tv_sec, battery->prev_safety_time);
|
||||
|
||||
if (expired_time <= ((ts.tv_sec - battery->prev_safety_time) * 1000))
|
||||
expired_time = 0;
|
||||
@@ -2582,7 +2592,8 @@ static void sec_bat_calculate_safety_time(struct sec_battery_info *battery)
|
||||
|
||||
battery->expired_time = expired_time;
|
||||
battery->prev_safety_time = ts.tv_sec;
|
||||
- pr_info("%s : REMAIN_TIME(%ld) CAL_REMAIN_TIME(%ld)\n", __func__, battery->expired_time, battery->cal_safety_time);
|
||||
+ // disable log spam
|
||||
+ // pr_info("%s : REMAIN_TIME(%ld) CAL_REMAIN_TIME(%ld)\n", __func__, battery->expired_time, battery->cal_safety_time);
|
||||
}
|
||||
|
||||
static void sec_bat_monitor_work(
|
||||
@@ -2672,13 +2683,14 @@ continue_monitor:
|
||||
if (!battery->charging_block)
|
||||
sec_bat_calculate_safety_time(battery);
|
||||
|
||||
- dev_info(battery->dev,
|
||||
- "%s: Status(%s), Mode(%s), Health(%s), Cable(%d), Vendor(%s), level(%d%%)\n",
|
||||
- __func__,
|
||||
- sec_bat_status_str[battery->status],
|
||||
- sec_bat_charging_mode_str[battery->charging_mode],
|
||||
- sec_bat_health_str[battery->health],
|
||||
- battery->cable_type, battery->pdata->vendor, battery->siop_level);
|
||||
+ // disable log spam
|
||||
+ //dev_info(battery->dev,
|
||||
+ // "%s: Status(%s), Mode(%s), Health(%s), Cable(%d), Vendor(%s), level(%d%%)\n",
|
||||
+ // __func__,
|
||||
+ // sec_bat_status_str[battery->status],
|
||||
+ // sec_bat_charging_mode_str[battery->charging_mode],
|
||||
+ // sec_bat_health_str[battery->health],
|
||||
+ // battery->cable_type, battery->pdata->vendor, battery->siop_level);
|
||||
#if defined(CONFIG_SAMSUNG_BATTERY_ENG_TEST)
|
||||
dev_info(battery->dev,
|
||||
"%s: battery->stability_test(%d), battery->eng_not_full_status(%d)\n",
|
||||
@@ -2686,9 +2698,10 @@ continue_monitor:
|
||||
#endif
|
||||
if (battery->store_mode && battery->cable_type != POWER_SUPPLY_TYPE_BATTERY) {
|
||||
|
||||
- dev_info(battery->dev,
|
||||
- "%s: @battery->capacity = (%d), battery->status= (%d), battery->store_mode=(%d)\n",
|
||||
- __func__, battery->capacity, battery->status, battery->store_mode);
|
||||
+ // disable log spam
|
||||
+ //dev_info(battery->dev,
|
||||
+ // "%s: @battery->capacity = (%d), battery->status= (%d), battery->store_mode=(%d)\n",
|
||||
+ // __func__, battery->capacity, battery->status, battery->store_mode);
|
||||
|
||||
if ((battery->capacity >= 35) && (battery->status == POWER_SUPPLY_STATUS_CHARGING)) {
|
||||
sec_bat_set_charging_status(battery,
|
||||
@@ -3965,7 +3978,7 @@ static int sec_bat_get_property(struct power_supply *psy,
|
||||
if (battery->status == POWER_SUPPLY_STATUS_FULL &&
|
||||
battery->capacity != 100) {
|
||||
val->intval = POWER_SUPPLY_STATUS_CHARGING;
|
||||
- pr_info("%s: forced full-charged sequence progressing\n", __func__);
|
||||
+ pr_debug("%s: forced full-charged sequence progressing\n", __func__);
|
||||
} else
|
||||
#endif
|
||||
val->intval = battery->status;
|
||||
diff --git a/drivers/battery/sec_fuelgauge.c b/drivers/battery/sec_fuelgauge.c
|
||||
index 262ad7be6cd..b6bf041b7d7 100644
|
||||
--- a/drivers/battery/sec_fuelgauge.c
|
||||
+++ b/drivers/battery/sec_fuelgauge.c
|
||||
@@ -45,9 +45,10 @@ static void sec_fg_get_scaled_capacity(
|
||||
0 : ((val->intval - fuelgauge->pdata->capacity_min) * 1000 /
|
||||
(fuelgauge->capacity_max - fuelgauge->pdata->capacity_min));
|
||||
|
||||
- dev_info(&fuelgauge->client->dev,
|
||||
- "%s: scaled capacity (%d.%d)\n",
|
||||
- __func__, val->intval/10, val->intval%10);
|
||||
+ // disable log spam
|
||||
+ //dev_info(&fuelgauge->client->dev,
|
||||
+ // "%s: scaled capacity (%d.%d)\n",
|
||||
+ // __func__, val->intval/10, val->intval%10);
|
||||
|
||||
#if defined(CONFIG_MACH_KLIMT)|| defined(CONFIG_MACH_CHAGALL)
|
||||
/* Reduce soc jump when battery is full
|
||||
diff --git a/drivers/fingerprint/fingerprint.h b/drivers/fingerprint/fingerprint.h
|
||||
index b15971924b2..38c9f143e64 100644
|
||||
--- a/drivers/fingerprint/fingerprint.h
|
||||
+++ b/drivers/fingerprint/fingerprint.h
|
||||
@@ -33,9 +33,10 @@ enum {
|
||||
SENSOR_EGIS,
|
||||
};
|
||||
|
||||
-#define SENSOR_STATUS_SIZE 5
|
||||
-static char sensor_status[SENSOR_STATUS_SIZE][8] ={"unknown", "failed",
|
||||
- "viper", "raptor", "egis"};
|
||||
+// this is now unused, because of commented code in vfs61xx.c: vfsspi_work_func_debug()
|
||||
+// #define SENSOR_STATUS_SIZE 5
|
||||
+// static char sensor_status[SENSOR_STATUS_SIZE][8] = {"unknown", "failed",
|
||||
+// "viper", "raptor", "egis"};
|
||||
|
||||
/* Fingerprint vendor check */
|
||||
#undef ENABLE_VENDOR_CHECK
|
||||
diff --git a/drivers/fingerprint/vfs61xx.c b/drivers/fingerprint/vfs61xx.c
|
||||
index 7cdf0e2c0d3..1fab64d7624 100644
|
||||
--- a/drivers/fingerprint/vfs61xx.c
|
||||
+++ b/drivers/fingerprint/vfs61xx.c
|
||||
@@ -1548,20 +1548,21 @@ static void vfsspi_work_func_debug(struct work_struct *work)
|
||||
| gpio_get_value(g_data->ldo_pin);
|
||||
}
|
||||
|
||||
- if (g_data->ocp_en)
|
||||
- pr_info("%s r ocpen: %d, ldo: %d,"
|
||||
- " sleep: %d, tz: %d, type: %s\n",
|
||||
- __func__, gpio_get_value(g_data->ocp_en),
|
||||
- ldo_value, gpio_get_value(g_data->sleepPin),
|
||||
- g_data->tz_mode,
|
||||
- sensor_status[g_data->sensortype+1]);
|
||||
- else
|
||||
- pr_info("%s r ldo: %d,"
|
||||
- " sleep: %d, tz: %d, type: %s\n",
|
||||
- __func__, ldo_value,
|
||||
- gpio_get_value(g_data->sleepPin),
|
||||
- g_data->tz_mode,
|
||||
- sensor_status[g_data->sensortype+1]);
|
||||
+ // disable log spam
|
||||
+ //if (g_data->ocp_en)
|
||||
+ // pr_info("%s r ocpen: %d, ldo: %d,"
|
||||
+ // " sleep: %d, tz: %d, type: %s\n",
|
||||
+ // __func__, gpio_get_value(g_data->ocp_en),
|
||||
+ // ldo_value, gpio_get_value(g_data->sleepPin),
|
||||
+ // g_data->tz_mode,
|
||||
+ // sensor_status[g_data->sensortype+1]);
|
||||
+ //else
|
||||
+ // pr_info("%s r ldo: %d,"
|
||||
+ // " sleep: %d, tz: %d, type: %s\n",
|
||||
+ // __func__, ldo_value,
|
||||
+ // gpio_get_value(g_data->sleepPin),
|
||||
+ // g_data->tz_mode,
|
||||
+ // sensor_status[g_data->sensortype+1]);
|
||||
}
|
||||
|
||||
static void vfsspi_enable_debug_timer(void)
|
||||
diff --git a/drivers/input/touchscreen/synaptics/synaptics_i2c_rmi.c b/drivers/input/touchscreen/synaptics/synaptics_i2c_rmi.c
|
||||
index 8816236f40b..afba3a709ce 100644
|
||||
--- a/drivers/input/touchscreen/synaptics/synaptics_i2c_rmi.c
|
||||
+++ b/drivers/input/touchscreen/synaptics/synaptics_i2c_rmi.c
|
||||
@@ -1746,7 +1746,7 @@ static int synaptics_rmi4_f12_abs_report(struct synaptics_rmi4_data *rmi4_data,
|
||||
#endif
|
||||
|
||||
if (!rmi4_data->finger[finger].state) {
|
||||
-#if !defined(CONFIG_SAMSUNG_PRODUCT_SHIP)
|
||||
+/*#if !defined(CONFIG_SAMSUNG_PRODUCT_SHIP)
|
||||
dev_info(&rmi4_data->i2c_client->dev,
|
||||
"[%d][P] 0x%02x, x = %d, y = %d, wx = %d, wy = %d |[%d]\n",
|
||||
finger, finger_status, x, y, wx, wy, fingers_to_process);
|
||||
@@ -1754,22 +1754,22 @@ static int synaptics_rmi4_f12_abs_report(struct synaptics_rmi4_data *rmi4_data,
|
||||
dev_info(&rmi4_data->i2c_client->dev,
|
||||
"[%d][P] 0x%02x\n",
|
||||
finger, finger_status);
|
||||
-#endif
|
||||
+#endif*/
|
||||
} else {
|
||||
rmi4_data->finger[finger].mcount++;
|
||||
}
|
||||
|
||||
-#if !defined(CONFIG_SAMSUNG_PRODUCT_SHIP)
|
||||
+/*#if !defined(CONFIG_SAMSUNG_PRODUCT_SHIP)
|
||||
if (rmi4_data->debug_log & 0x2)
|
||||
dev_info(&rmi4_data->i2c_client->dev,
|
||||
"[%d] 0x%02x, x = %d, y = %d, wx = %d, wy = %d |[%d]\n",
|
||||
finger, finger_status, x, y, wx, wy, fingers_to_process);
|
||||
-#endif
|
||||
+#endif*/
|
||||
touch_count++;
|
||||
}
|
||||
|
||||
if (rmi4_data->finger[finger].state && (!finger_status)) {
|
||||
-#if !defined(CONFIG_SAMSUNG_PRODUCT_SHIP)
|
||||
+/*#if !defined(CONFIG_SAMSUNG_PRODUCT_SHIP)
|
||||
dev_info(&rmi4_data->i2c_client->dev, "[%d][R] 0x%02x M[%d], Ver[%02X%02X][%X/%d]\n",
|
||||
finger, finger_status, rmi4_data->finger[finger].mcount,
|
||||
rmi4_data->ic_revision_of_ic, rmi4_data->fw_version_of_ic, rmi4_data->lcd_id, system_rev);
|
||||
@@ -1777,7 +1777,7 @@ static int synaptics_rmi4_f12_abs_report(struct synaptics_rmi4_data *rmi4_data,
|
||||
dev_info(&rmi4_data->i2c_client->dev, "[%d][R] 0x%02x M[%d], Ver[%02X%02X][%X/%d]\n",
|
||||
finger, finger_status, rmi4_data->finger[finger].mcount,
|
||||
rmi4_data->ic_revision_of_ic, rmi4_data->fw_version_of_ic, rmi4_data->lcd_id, system_rev);
|
||||
-#endif
|
||||
+#endif*/
|
||||
rmi4_data->finger[finger].mcount = 0;
|
||||
}
|
||||
|
||||
diff --git a/drivers/thermal/msm_thermal.c b/drivers/thermal/msm_thermal.c
|
||||
index 03c7eda5811..6e18c83bd71 100644
|
||||
--- a/drivers/thermal/msm_thermal.c
|
||||
+++ b/drivers/thermal/msm_thermal.c
|
||||
@@ -53,7 +53,7 @@
|
||||
|
||||
static struct msm_thermal_data msm_thermal_info;
|
||||
static struct delayed_work check_temp_work;
|
||||
-static struct delayed_work temp_log_work;
|
||||
+// static struct delayed_work temp_log_work;
|
||||
static bool core_control_enabled;
|
||||
static uint32_t cpus_offlined;
|
||||
static DEFINE_MUTEX(core_control_mutex);
|
||||
@@ -1385,30 +1385,30 @@ reschedule:
|
||||
}
|
||||
|
||||
|
||||
-static void __ref msm_therm_temp_log(struct work_struct *work)
|
||||
-{
|
||||
-
|
||||
- struct tsens_device tsens_dev;
|
||||
- long temp = 0;
|
||||
- int i, added = 0, ret = 0;
|
||||
- uint32_t max_sensors = 0;
|
||||
- char buffer[500];
|
||||
-
|
||||
- if(!tsens_get_max_sensor_num(&max_sensors))
|
||||
- {
|
||||
- pr_info( "Debug Temp for Sensor: ");
|
||||
- for(i=0;i<max_sensors;i++)
|
||||
- {
|
||||
- tsens_dev.sensor_num = i;
|
||||
- tsens_get_temp(&tsens_dev, &temp);
|
||||
- ret = sprintf(buffer + added, "(%d --- %ld)", i, temp);
|
||||
- added += ret;
|
||||
- }
|
||||
- pr_info("%s", buffer);
|
||||
- }
|
||||
- schedule_delayed_work(&temp_log_work,
|
||||
- HZ*5); //For every 5 seconds log the temperature values of all the msm thermistors.
|
||||
-}
|
||||
+//static void __ref msm_therm_temp_log(struct work_struct *work)
|
||||
+//{
|
||||
+//
|
||||
+// struct tsens_device tsens_dev;
|
||||
+// long temp = 0;
|
||||
+// int i, added = 0, ret = 0;
|
||||
+// uint32_t max_sensors = 0;
|
||||
+// char buffer[500];
|
||||
+
|
||||
+// if(!tsens_get_max_sensor_num(&max_sensors))
|
||||
+// {
|
||||
+// pr_info( "Debug Temp for Sensor: ");
|
||||
+// for(i=0;i<max_sensors;i++)
|
||||
+// {
|
||||
+// tsens_dev.sensor_num = i;
|
||||
+// tsens_get_temp(&tsens_dev, &temp);
|
||||
+// ret = sprintf(buffer + added, "(%d --- %ld)", i, temp);
|
||||
+// added += ret;
|
||||
+// }
|
||||
+// pr_info("%s", buffer);
|
||||
+// }
|
||||
+// schedule_delayed_work(&temp_log_work,
|
||||
+// HZ*5); //For every 5 seconds log the temperature values of all the msm thermistors.
|
||||
+//}
|
||||
|
||||
static int __ref msm_thermal_cpu_callback(struct notifier_block *nfb,
|
||||
unsigned long action, void *hcpu)
|
||||
@@ -3363,7 +3363,7 @@ static int msm_thermal_dev_exit(struct platform_device *inp_dev)
|
||||
kfree(thresh);
|
||||
thresh = NULL;
|
||||
}
|
||||
- cancel_delayed_work_sync(&temp_log_work);
|
||||
+ // cancel_delayed_work_sync(&temp_log_work);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -3384,8 +3384,8 @@ static struct platform_driver msm_thermal_device_driver = {
|
||||
|
||||
int __init msm_thermal_device_init(void)
|
||||
{
|
||||
- INIT_DELAYED_WORK(&temp_log_work, msm_therm_temp_log);
|
||||
- schedule_delayed_work(&temp_log_work, HZ*2);
|
||||
+ // INIT_DELAYED_WORK(&temp_log_work, msm_therm_temp_log);
|
||||
+ // schedule_delayed_work(&temp_log_work, HZ*2);
|
||||
|
||||
return platform_driver_register(&msm_thermal_device_driver);
|
||||
}
|
||||
--
|
||||
2.19.1
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
diff --git a/drivers/video/msm/mdss/mdss_mdp_trace.h b/drivers/video/msm/mdss/mdss_mdp_trace.h
|
||||
index 33fe3a4..730b7ff 100644
|
||||
--- a/drivers/video/msm/mdss/mdss_mdp_trace.h
|
||||
+++ b/drivers/video/msm/mdss/mdss_mdp_trace.h
|
||||
@@ -17,7 +17,7 @@
|
||||
#undef TRACE_SYSTEM
|
||||
#define TRACE_SYSTEM mdss
|
||||
#undef TRACE_INCLUDE_PATH
|
||||
-#define TRACE_INCLUDE_PATH .
|
||||
+#define TRACE_INCLUDE_PATH ../../drivers/video/msm/mdss
|
||||
#undef TRACE_INCLUDE_FILE
|
||||
#define TRACE_INCLUDE_FILE mdss_mdp_trace
|
||||
|
|
@ -1,20 +1,21 @@
|
|||
# Kernel config based on: arch/arm/configs/boeffla_defconfig
|
||||
# Reference: <https://postmarketos.org/vendorkernel>
|
||||
# Kernel config based on: arch/arm/configs/msm8974_sec_defconfig
|
||||
# arch/arm/configs/msm8974pro_sec_klte_eur_defconfig
|
||||
# arch/arm/configs/selinux_defconfig
|
||||
|
||||
pkgname="linux-samsung-klte"
|
||||
pkgver=3.4.0
|
||||
pkgrel=2
|
||||
pkgver=3.4.113
|
||||
pkgrel=0
|
||||
pkgdesc="Samsung Galaxy S5 kernel fork"
|
||||
arch="armhf"
|
||||
_carch="arm"
|
||||
_flavor="samsung-klte"
|
||||
url="https://github.com/andip71/boeffla-kernel-samsung-s5"
|
||||
license="GPL2"
|
||||
url="https://kernel.org"
|
||||
license="GPL-2.0-only"
|
||||
options="!strip !check !tracedeps"
|
||||
makedepends="perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev xz dtbtool gcc6"
|
||||
makedepends="perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev xz dtbtool devicepkg-dev gcc6"
|
||||
|
||||
# Compiler: this kernel was only tested with GCC6. Feel free to make a merge
|
||||
# request if you find out that it is booting working with newer GCCs as
|
||||
# well. See <https://postmarketos.org/vendorkernel> for instructions.
|
||||
# Compiler: GCC 6 (doesn't boot when compiled with newer versions)
|
||||
if [ "${CC:0:5}" != "gcc6-" ]; then
|
||||
CC="gcc6-$CC"
|
||||
HOSTCC="gcc6-gcc"
|
||||
|
@ -22,41 +23,26 @@ if [ "${CC:0:5}" != "gcc6-" ]; then
|
|||
fi
|
||||
|
||||
# Source
|
||||
_repository="boeffla-kernel-samsung-s5"
|
||||
_commit="4f0aa338c54103b7d7744dd3a8202081883512b5"
|
||||
_repository="android_kernel_samsung_msm8974"
|
||||
_commit="7a3b6080ee8d411acc2bb4a08de479aa8cc9c77a"
|
||||
_config="config-${_flavor}.${arch}"
|
||||
source="
|
||||
$pkgname-$_commit.tar.gz::https://github.com/andip71/${_repository}/archive/${_commit}.tar.gz
|
||||
$pkgname-$_commit.tar.gz::https://github.com/LineageOS/${_repository}/archive/${_commit}.tar.gz
|
||||
$_config
|
||||
compiler-gcc6.h
|
||||
00_fix_return_address.patch
|
||||
01_timeconst_fix.patch
|
||||
02_gpu-msm-fix-gcc5-compile.patch
|
||||
03_msm_fix_trace.patch
|
||||
01_gpu-msm-fix-gcc5-compile.patch
|
||||
02-Reduce-battery-and-touchscreen-log-spam.patch
|
||||
"
|
||||
builddir="$srcdir/${_repository}-${_commit}"
|
||||
|
||||
prepare() {
|
||||
default_prepare
|
||||
|
||||
# gcc6 support
|
||||
cp -v "$srcdir/compiler-gcc6.h" "$builddir/include/linux/"
|
||||
|
||||
# Remove -Werror from all makefiles
|
||||
find . -type f -name Makefile -print0 | \
|
||||
xargs -0 sed -i 's/-Werror-/-W/g'
|
||||
find . -type f -name Makefile -print0 | \
|
||||
xargs -0 sed -i 's/-Werror//g'
|
||||
|
||||
# Prepare kernel config ('yes ""' for kernels lacking olddefconfig)
|
||||
cp "$srcdir"/$_config "$builddir"/.config
|
||||
yes "" | make ARCH="$_carch" HOSTCC="$HOSTCC" oldconfig
|
||||
downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
|
||||
}
|
||||
|
||||
build() {
|
||||
unset LDFLAGS
|
||||
make ARCH="$_carch" CC="${CC:-gcc}" \
|
||||
C_INCLUDE_PATH="./arch/arm/mach-msm:./sound/soc/msm/qdsp6v2"
|
||||
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
|
||||
|
||||
# Generate master DTB
|
||||
|
@ -85,12 +71,16 @@ package() {
|
|||
# Master DTB
|
||||
install -Dm644 "$builddir/arch/arm/boot/dt.img" \
|
||||
"$pkgdir/boot/dt.img"
|
||||
|
||||
# External modules install
|
||||
cd "$builddir"
|
||||
make ARCH="$_carch" CC="${CC:-gcc}" \
|
||||
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS" \
|
||||
INSTALL_MOD_PATH="$pkgdir" modules_install
|
||||
}
|
||||
|
||||
sha512sums="c4bee8ae1f9a6d3126c54395e5640ec7d2750b82cb83c515d132a2fa769667d9795d5cff8ae9bf41118d61d4311dbba50328f31804bee901f5cd6ff899d2040b linux-samsung-klte-4f0aa338c54103b7d7744dd3a8202081883512b5.tar.gz
|
||||
dbd294dccaaf1d94b8cb235ad54e9f72af1a0e7e31184c25e4b24685419d01f4420dd6e4af5080b47d12f719531cee97e037e305e7eb7371980d8c90d67b60c0 config-samsung-klte.armhf
|
||||
d80980e9474c82ba0ef1a6903b434d8bd1b092c40367ba543e72d2c119301c8b2d05265740e4104ca1ac5d15f6c4aa49e8776cb44264a9a28dc551e0d1850dcc compiler-gcc6.h
|
||||
ea1d3b5a234fa565e3c1a792de48f4fc4e6023d281d303c8e319c7ef28edc5739ab0e4dea0139a41f0a5c7d03e27921ccaa214fd0ac5c72245a094ce60128864 00_fix_return_address.patch
|
||||
a2bb98fb8d988bbb659cae00fbaca360828300e9b98b90aed5ee0dd839c3f740696df4094a9021b813cbada06820d115aabed581a47cdd2c947e8d853c20b145 01_timeconst_fix.patch
|
||||
7be03a9e78b7ac330a54b1f00509caa0621a95c0c55901878ad757f9dd69cc05ba2c8b5ea987063ae1224f92c4d090d515fa5d369e7755181a4871b0d0f82881 02_gpu-msm-fix-gcc5-compile.patch
|
||||
657630a1ebd5a9aff872530022e83b1087ef3c0eb7a214d350c9caf779c2691f92de6630a40d735b5f7a34ba6a3e9e7eb708d3deb52f134d53164836c312e5e9 03_msm_fix_trace.patch"
|
||||
sha512sums="a0ed01d4beb4fd1b304ea1409e4e3d7ff60662de34999dcdb2901cb10eef217a6679d5cc42dfcc9c3e2b9fb96bc38a8adc431444092310e22af29c7d581f60af linux-samsung-klte-7a3b6080ee8d411acc2bb4a08de479aa8cc9c77a.tar.gz
|
||||
3045e613475bcdb454315450c86ca3198787ff0f4573a61118a6a600048d1d9b45d6c83c1804d4945bcf24af8759a038d9f2b5bf57aa7ab8b3585be65ffd4f7a config-samsung-klte.armhf
|
||||
3b4913415bcfe0ff222969f993890c656c7e12b6ee06532bded485d5201c9855b2c87996c5b63423702b89b6b0ca214b5aceeb402571d9c5af084093c157ccb4 00_fix_return_address.patch
|
||||
0fc4b1782dfd3bd94fa9ae8ab74b19713f25e9f4a48dcf830072634f247aa3dd8847f001a3e87e9728e057657efd4ae751510e7c408d9b960c907665ca64e61f 01_gpu-msm-fix-gcc5-compile.patch
|
||||
b55fc9ab3e21bc85d66ee08d7e1cd7fdc3b236249212fbcd0055e60ed3e6cef3e4d2b8058a4b7d70c78b2bbc7a11111b55d4d82490b4e3579b8e61657806ac09 02-Reduce-battery-and-touchscreen-log-spam.patch"
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue